Foreman is a complete life-cycle management tool that can be installed on Linux systems, including Ubuntu. It allows system administrators to administer Linux server via a simple web interface. It makes managing Linux servers a breeze, even a newbie can do it!
Foreman support agents from Puppet, Chef, Salt and Ansible and provide reports via its management interface, by monitoring host configuration, report status, distribution and trends.
This brief tutorial is going to show students and new users an easily to install Foreman server management tool on Ubuntu 16.04 | 18.04 LTS.
This tool may be what admins need to easily automate repetitive tasks, quickly deploy applications, and proactively manage servers, on-premise or in the cloud.
For more about Foreman, please check its homepage.
When you want to install Foreman on Ubuntu, please follow the steps below:
Step 1: Adding Foreman Repository
Before installing Foreman, you may want to first add its repository to Ubuntu. Using Puppet 5.x is recommended, which is available from the Puppet Labs repository. To use Puppet 5.x with Puppet Agent and Puppet Server:
sudo apt-get -y install ca-certificates cd /tmp && wget sudo dpkg -i /tmp/puppet5-release-bionic.deb
Next, enable Foreman repository by running the commands below.
echo "deb bionic 1.20" | sudo tee /etc/apt/sources.list.d/foreman.list echo "deb plugins 1.20" | sudo tee -a /etc/apt/sources.list.d/foreman.list sudo apt-get -y install ca-certificates wget -q -O- | sudo apt-key add -
Step 2: Installing Foreman
Now that Foreman repository and key have been added to Ubuntu, run the commands below to update and install the package
sudo apt-get update sudo apt-get -y install foreman-installer
This this will fetch all the supported packages and install them including Foreman. The installation run is non-interactive, but the configuration can be customized by supplying any of the options listed in foreman-installer –help, or by running foreman-installer -i for interactive mode.
After it completes, the installer will print some details about where to find Foreman and the Smart Proxy and Puppet master if they were installed along Foreman. Output should be similar to this:
Foreman is running at Initial credentials are admin / 3ekw5xtyXCoXxS29 Foreman Proxy is running at :8443 Puppetmaster is running at port 8140 The full log is at /var/log/foreman-installer/foreman-installer.log
If you don’t get the dashboard info above, run the commands below:
sudo foreman-installer
Make sure the server qualified name is in the /etc/hosts file. and it should be the first entry in the file.example:
127.0.0.1 foreman.example.com foreman
Now open your browser and browse to the server name or IP address and login with the admin username and password printed above.
Logon to the admin portal using the username and password printed above.
Congratulations! You’ve just installed Foreman server management tool on Ubuntu 16.04 | 18.04 LTS servers.
Summary:
This brief post shows students and new users how to install Foreman on Ubuntu 16.04 | 18.04. New users will find managing Ubuntu easy with Foreman. The tool takes away Linux complicity and allow almost anyone to manage Linux like a pro.
You may also like the post below: