How to install Foreman on Ubuntu 14.04

Source: Internet
Author: User
Tags ruby on rails puppet labs

How to install Foreman on Ubuntu 14.04

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/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.