Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Foreman on Ubuntu 14.04

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "how to install Foreman on Ubuntu 14.04". In the actual case operation process, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!

Foreman is an integrated data center lifecycle management tool that provides provisioning, configuration management, and reporting capabilities. Like Puppet Dahboard, Foreman is a Ruby on Rails application. Foreman differs from Dashboard in that Foreman focuses more on provisioning and the ability to manage data centers, such as integration with boot tools, PXE boot servers, DHCP servers, and server provisioning tools.

Foreman Machine Unified Management Platform

Foreman can be integrated with Puppet, usually as a front-end access to Puppet.

◆Foreman takes care of provisioning until the point puppet is running, allowing Puppet to do what it does best. (Too hard to turn over-_-!!)

Foreman is able to display system catalog information through the Facter component and can provide real-time information from Puppet host reports.

Foreman can prepare you for all the tasks of managing the new machine. It is designed to automate all manual tasks and can be reconfigured via Foreman.

Foreman is able to manage large (and of course small), enterprise-class networks that may have many domains, subnets, and puppet masters. Foreman can also backtrack configuration versions.

Foreman runs on almost all popular Linux systems, such as:

◆RHEL / CentOS / Fedora / Oracle Enterprise Linux / Scientific Linux

◆SUSE/openSUSE

◆Debian/Ubuntu

◆CoreOS

◆JunOS

It also supports many cloud vendors, such as:

◆VMWare

◆Amazon EC2

◆Libvirt

◆OpenStack

◆oVirt and RHEV

◆Rackspace

◆Google Compute engine

how to install

OK, now we get to the topic, follow the following command input, first switch to 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 Foreman-installer installation script:

apt-get -y install foreman-installer

Run Foreman install command:

foreman-installer

After 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 shown in bold. Later we need to access the Foreman panel.

Configure Foreman

First, we need to enable diffs, which will help you see Foreman's reports.

Edit the/etc/puppet/puppet.conf file:

vi /etc/puppet/puppet.conf

Find the following line and modify it to true:

[…]

show_diff = true

[…]

Save and close the file.

Next, we need to add the Foreman host to Foreman's 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 ‘1441613934’

Notice: Finished catalog run in 0.22 seconds

Note: Puppet 3+ will display a warning message: the first time the node can't be found. Ignore the warning and continue.

Visit Foreman Web Console

Open a Web browser and navigate to: https://IP address/.

An interface will appear to enter the previously recorded login account and password.

Download We can go in and see the whole console interface:

"How to install Foreman on Ubuntu 14.04" is introduced here, thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report