<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ubuntu foreman installation Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/ubuntu-foreman-installation/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 14 Aug 2020 15:42:13 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How To Install Foreman 2.x on Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-foreman-2-x-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-foreman-2-x-on-ubuntu-20-04/#comments</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Fri, 14 Aug 2020 15:42:11 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[foreman installation guide]]></category>
		<category><![CDATA[How To Install Foreman 2.x on Ubuntu 20.04]]></category>
		<category><![CDATA[how to tutori]]></category>
		<category><![CDATA[install foreman on ubuntu 20.04]]></category>
		<category><![CDATA[ubuntu foreman installation]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=20898</guid>

					<description><![CDATA[<p>In this tutorial you will learn that how to install Foreman 2.x on Ubuntu 20.04. Before going to the installation procedure let&#8217;s have a short introduction about Foreman. Introduction: Foreman is an open-source tool used for the management of server life-cycle monitoring and configuration to orchestration. With the help of different automation tools like Ansible, [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-foreman-2-x-on-ubuntu-20-04/">How To Install Foreman 2.x on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this tutorial you will learn that how to install Foreman 2.x on Ubuntu 20.04. Before going to the installation procedure let&#8217;s have a short introduction about Foreman.</p>



<h3><strong>Introduction:</strong></h3>



<p><a href="https://www.theforeman.org/" target="_blank" rel="noreferrer noopener">Foreman</a> is an open-source tool used for the management of server life-cycle monitoring and configuration to orchestration. With the help of different automation tools like Ansible, Chef, Salt, Puppet, you can easily control the repetitive tasks and automate them to save time. So, it helps you to save your time as well as perform tasks fast and smooth. Here we&#8217;ll see some important features of Foreman.</p>



<h3>Some f<strong>eatures:</strong></h3>



<ul><li>Discover, provision and upgrade your entire bare-metal infrastructure</li><li>Create and manage instances in virtualization environment and across private and public clouds</li><li>Install operating systems via PXE, local media or from templates or images</li><li>Control and gather reports from your configuration management software</li><li>Group your hosts and manage them in bulk, regardless of location</li><li>Review historical changes for auditing or troubleshooting</li><li>Web user interface, JSON REST API and CLI for Linux</li><li>Extend as needed via a robust plugin architecture</li></ul>



<p>Now, we are going to install Foreman 2.x on Ubuntu 20.04.</p>



<h3><strong>Step 1: Update Your System</strong></h3>



<p>Before going to install any new package, update your system to have the latest packages install. To update simply run the following command in your terminal.</p>



<pre class="wp-block-preformatted">sudo apt update</pre>



<h3><strong>Step 2: Set Up Hostname</strong></h3>



<p>After the update is finished, set up a proper hostname as it will be resolved to an IP address. Hit the below command to set the hostname.</p>



<pre class="wp-block-verse">sudo hostnamectl set-hostname foreman.example.com
echo "192.168.135.142 foreman.exmaple.com" | sudo tee -a /etc/hosts</pre>



<p>Make sure to replace the hostname &amp; the IP address with your actual values. Hit the below command to confirm. Also make sure that the command show the real IP address instead of localhost address.</p>



<pre class="wp-block-verse">ping -c 2 $(hostname -f)</pre>



<p>Output:</p>



<pre class="wp-block-verse">sabir@foreman:~$ ping -c 2 $(hostname -f)
PING foreman.example.com (192.168.135.142) 56(84) bytes of data.
64 bytes from foreman.example.com (192.168.135.142): icmp_seq=1 ttl=64 time=0.024 ms
64 bytes from foreman.example.com (192.168.135.142): icmp_seq=2 ttl=64 time=0.071 ms
--- foreman.example.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.024/0.047/0.071/0.023 ms</pre>



<h3><strong>Step 3: Reboot Your System</strong></h3>



<p>After making the above changes, update and reboot your system to take the effect of applied changes.</p>



<pre class="wp-block-verse">sudo apt update &amp;&amp; sudo apt upgrade</pre>



<pre class="wp-block-verse">sudo systemctl reboot</pre>



<h3><strong>Step 4: Add Puppet &amp; Foreman Repository</strong></h3>



<p>As Puppet &amp; Foreman repository are needed for the installation of Foreman package so we&#8217;ve to first add them before initializing the installation. Hit the given command to add the puppet repository on Ubuntu 20.04.</p>



<pre class="wp-block-verse">sudo apt update
sudo apt -y install ca-certificates wget
wget https://apt.puppet.com/puppet6-release-focal.deb
sudo apt install ./puppet6-release-focal.deb</pre>



<p>After it add the Foreman repo with the help of below command.</p>



<pre class="wp-block-verse">sudo apt -y install gpg ca-certificates
echo "deb http://deb.theforeman.org/ bionic 2.0" | sudo tee /etc/apt/sources.list.d/foreman.list
echo "deb http://deb.theforeman.org/ plugins 2.0" | sudo tee -a /etc/apt/sources.list.d/foreman.list
wget -q https://deb.theforeman.org/pubkey.gpg -O- | sudo apt-key add -</pre>



<h3><strong>Step 5: Install Foreman Installer</strong></h3>



<p>As we&#8217;ve completed the above requirements so now we&#8217;ll install the Foreman installer on Ubuntu 20.04. Simply type the following command in your terminal.</p>



<pre class="wp-block-verse">sudo apt update<br>sudo apt install foreman-installer</pre>



<p>Allow the installation by typing &#8220;<strong>Y</strong>&#8220;.</p>



<pre class="wp-block-verse">The following additional packages will be installed:
libgdbm-compat4 libruby2.5 puppet-agent rake ruby ruby-ansi ruby-clamp ruby-did-you-mean ruby-hashie ruby-highline ruby-kafo ruby-kafo-parsers
ruby-kafo-wizards ruby-little-plugger ruby-logging ruby-minitest ruby-multi-json ruby-net-telnet ruby-power-assert ruby-powerbar ruby-test-unit
ruby2.5 rubygems-integration
Suggested packages:
ri ruby-dev bundler
Recommended packages:
zip ruby-oj fonts-lato libjs-jquery
The following NEW packages will be installed:
foreman-installer libgdbm-compat4 libruby2.5 puppet-agent rake ruby ruby-ansi ruby-clamp ruby-did-you-mean ruby-hashie ruby-highline ruby-kafo
ruby-kafo-parsers ruby-kafo-wizards ruby-little-plugger ruby-logging ruby-minitest ruby-multi-json ruby-net-telnet ruby-power-assert ruby-powerbar
ruby-test-unit ruby2.5 rubygems-integration
0 upgraded, 24 newly installed, 0 to remove and 0 not upgraded.
Need to get 27.4 MB of archives.
After this operation, 162 MB of additional disk space will be used.
Do you want to continue? [Y/n]<strong> y</strong></pre>



<h3><strong>Step 6: Configure Foreman Installer</strong></h3>



<p>Once the installation finished, configure the Foreman installer. Here we&#8217;ll introduce some commands to use Foreman on Ubuntu 20.04.</p>



<p>To seek for help it&#8217;s good idea to read the manual by hitting the below command.</p>



<pre class="wp-block-verse">foreman-installer --help</pre>



<p>Foreman comes with the non-interactive mode installation, if you want to run it in interactive mode, hit</p>



<pre class="wp-block-verse">sudo foreman-installer -i</pre>



<p>For non-interactive mode, type</p>



<pre class="wp-block-verse">sudo foreman-installer</pre>



<p>Installer will print the information of Smart Proxy and the Puppet master if they are installed while installing the Foreman package like this</p>



<pre class="wp-block-verse">Preparing installation Done
Success!
Foreman is running at https://foreman.example.com
Initial credentials are admin / yafNTaFNNJRUGP84
Foreman Proxy is running at https://foreman.example.com:8443
The full log is at /var/log/foreman-installer/foreman.log</pre>



<p>Make sure to save these credentials to log in to the Foreman Dashboard.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="982" height="590" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/08/1.png" alt="How To Install Foreman 2.x on Ubuntu 20.04" class="wp-image-22249" srcset="https://www.osradar.com/wp-content/uploads/2020/08/1.png 982w, https://www.osradar.com/wp-content/uploads/2020/08/1-300x180.png 300w, https://www.osradar.com/wp-content/uploads/2020/08/1-768x461.png 768w, https://www.osradar.com/wp-content/uploads/2020/08/1-696x418.png 696w" sizes="(max-width: 982px) 100vw, 982px" /></figure>



<p>You&#8217;ll be directed to the dashboard.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1005" height="486" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/08/2.png" alt="How To Install Foreman 2.x on Ubuntu 20.04" class="wp-image-22250" srcset="https://www.osradar.com/wp-content/uploads/2020/08/2.png 1005w, https://www.osradar.com/wp-content/uploads/2020/08/2-300x145.png 300w, https://www.osradar.com/wp-content/uploads/2020/08/2-768x371.png 768w, https://www.osradar.com/wp-content/uploads/2020/08/2-696x337.png 696w" sizes="(max-width: 1005px) 100vw, 1005px" /></figure>



<p>So, this is how you can install Foreman on Ubuntu 20.04.</p>



<p>Please share this post and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener">our Telegram Channel</a>.</p>



<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-foreman-2-x-on-ubuntu-20-04/">How To Install Foreman 2.x on Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-foreman-2-x-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
