Foreman is an integrated data center life cycle management tool that provides provisioning, configuration management, and reporting capabilities, and Puppet Dahboard Like, Foreman is a Ruby on Rails program .Foreman and Dashboard different places is that, more attention Foreman service provisioning and the ability to manage the data center, for example, and guiding tool, PXE boot server, DHCP server and server open tool integration.
Foreman machine unified management platform
Foreman with Puppet integration uses, typically as a puppet of the front-end access.
Foreman takes care of provisioning until the point puppet is running, allowing Puppet to do what it does best. (Hard doubled -_- !!)
Foreman can display system catalog information Facter components, and can provide real-time information from the host Puppet report
Foreman can prepare you to manage all the work the new machine. It is designed to automate manual management of all work completed, the machine can be reconfigured by Foreman.
Foreman is able to manage large-scale (of course, including small-scale), the enterprise-class network, there may be a lot of domains, subnets, and a lot of puppet master node .Foreman may also be implemented configuration version of backtracking.
Foreman can run on almost all popular Linux systems, such as:
RHEL / CentOS / Fedora / Oracle Enterprise Linux / Scientific Linux
SUSE / openSUSE
Debian / Ubuntu
Also supports many cloud providers, such as:
oVirt and RHEV
Google Compute engine
how to install
Well, now we enter the topic, enter the following command, first switch to the Root account:
Foreman enable Puppet labs and libraries:
apt-get -y install ca-certificates
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 -
Download Foreman-installer installation script:
apt-get -y install foreman-installer
Foreman run the install command:
After a few minutes, you will see the following output:
* 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 one shown in boldface user name and password. Later we need to use to access Foreman panel.
First, we need to enable the "diffs", which will help you see Foreman reports.
Edit /etc/puppet/puppet.conf file:
Find the following line and modify ture:
show_diff = true
Save and close the file.
Next, we need to add to Foreman Foreman host database. run:
puppet agent --test
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 '1441613934'
Notice: Finished catalog run in 0.22 seconds
Note: Puppet 3+ version will display a warning message: the first time that the node can not be found. Ignore the warning to continue.
Foreman Web console access
Open a Web browser and navigate to: https: // IP address /.
Will appear before the screen, enter the record login account and password.
Download we can go to understand the whole console interface