Foreman is an integrated data center lifecycle management tool that provides service activation, configuration management, and report functions. Like PuppetDahboard, Foreman is also a RubyonRails program. the difference between Foreman and Dashboard is that Foreman focuses more on Service Activation and management of data centers, such as and boot tools, PXE to start servers, DHCP server and server activation tools are integrated. unified Foreman Machine Management
Foreman is an integrated data center lifecycle management tool that provides service activation, configuration management, and report functions. Like Puppet Dahboard, Foreman is also a Ruby on Rails program. the difference between Foreman and Dashboard is that Foreman focuses more on Service Activation and management of data centers, such as and boot tools, PXE to start servers, DHCP server and server activation tools are integrated.
Foreman unified Machine Management Platform
- Foreman can be integrated with Puppet, which is usually used as the frontend access of puppet.
- Foreman takes care of provisioning until the point puppet is running, allowing Puppet to do what it does best. (too difficult -_-!!)
- Foreman can use the Facter component to display system directory information and provide real-time information from Puppet host reports.
- Foreman is able to prepare you to manage all the work of new machines. Its design goal is to automate all manual management work, and Foreman can reconfigure the machines.
- Foreman is able to manage large-scale (and small-scale) enterprise-level networks, and may have many domains, subnets, and many puppet master nodes. Foreman can also implement configuration version backtracking.
Foreman can run on almost all popular Linux systems, such:
- RHEL/CentOS/Fedora/Oracle Enterprise Linux/Scientific Linux
- SUSE/openSUSE
- Debian/Ubuntu
- CoreOS
- JunOS
It also supports many cloud providers, such:
- VMWare
- Amazon EC2
- Libvirt
- OpenStack
- OVirt and Rev
- Rackspace
- Google Compute engine
How to install
Now, go to the topic and run the following command to switch to the Root account:
Sudo su
Or enter
Su
Enable Puppet labs and Foreman libraries:
Apt-get-y install ca-certificates
Wget https://apt.puppetlabs.com/puppetlabs-release-trusty.deb
Dpkg-I puppetlabs-release-trusty.deb
Echo "deb http://deb.theforeman.org/trusty 1.9">/etc/apt/sources. list. d/foreman. list
Echo "deb http://deb.theforeman.org/plugins 1.9">/etc/apt/sources. list. d/foreman. list
Wget-q http://deb.theforeman.org/pubkey.gpg-O-| apt-key add-
Update Source:
Apt-get update
Download the Foreman-installer installation script:
Apt-get-y install foreman-installer
Run the Foreman installation command:
Foreman-installer
In a few minutes, you will see the following output:
[…]
Success!
* Foreman is running at https://server.unixmen.local
Initial credentials are admin/jrPiWSpSBXBdzv57
* Foreman Proxy is running at https://server.unixmen.local: 8443
* Puppetmaster is running at port 8140
The full log is at/var/log/foreman-installer/foreman-installer.log
Write down the username and password in bold. We need to access the Foreman Panel later.
Configure Foreman
First, we need to enable "diffs", which will help you see the Foreman report.
Edit the/etc/puppet. conf file:
Vi/etc/puppet. conf
Find the following line and change it to true:
[…]
Show_diff = true
[…]
Save and close the file.
Next, we need to add the Foreman host to the Foreman database. Run:
Puppet agent -- test
Output content:
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Error 400 on SERVER: Failed to find server1.unixmen. local via exec: Execution of '/etc/puppet/node. rb server1.unixmen. local' returned 1:
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Caching catalog for server1.unixmen. local
Info: Applying configuration version '20140901'
Notice: Finished catalog run in 0.22 seconds
Note: the Puppet 3 + version displays the warning message: the first time that the node can't be found. Ignore the warning and continue.
Access the Foreman Web Console
Open a Web browser and navigate to: https: // ip address /.
The Logon account and password recorded earlier are displayed.
You can go to the console to learn more about the download:
Http://theforeman.org/
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2
This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-09/122793.htm