<?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>Foreman Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/foreman/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 28 Nov 2019 12:15:44 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>How To Sync CentOS 8 repositories on Satellite / Katello / Foreman</title>
		<link>https://www.osradar.com/how-to-sync-centos-8-repositories-on-satellite-katello-foreman/</link>
					<comments>https://www.osradar.com/how-to-sync-centos-8-repositories-on-satellite-katello-foreman/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Thu, 28 Nov 2019 12:15:42 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Foreman]]></category>
		<category><![CDATA[katello]]></category>
		<category><![CDATA[satelite]]></category>
		<category><![CDATA[sync Centos 8 repositories]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=15929</guid>

					<description><![CDATA[<p>Introduction: In this tutorial, we are going to learn how to sync &#38; store CentOS 8 BaseOS &#38; AppStream repositories on Foreman Katello &#38; Red Hat Satellite. Foreman is used for life cycle management of physical and virtual systems. It is an open source application use for provisioning. Foreman is the basic foundation form which [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-sync-centos-8-repositories-on-satellite-katello-foreman/">How To Sync CentOS 8 repositories on Satellite / Katello / Foreman</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h3><strong>Introduction:</strong></h3>



<p>In this tutorial, we are going to learn how to sync &amp; store CentOS 8 BaseOS &amp; AppStream repositories on Foreman Katello &amp; Red Hat Satellite. Foreman is used for life cycle management of physical and virtual systems. It is an open source application use for provisioning.</p>



<p>Foreman is the basic foundation form which Red Hat Satellite&#8217;s core functionality is derived. Katello is a Foreman plug-in for subscription &amp; repository management. It helps you to assist with storing repositories on your local system and provides a means to subscribe to those repositories &amp; download content.</p>



<p>In case, you don&#8217;t have Foreman/Red Hat Satellite, you can follow this tutorial;</p>



<p><a href="https://www.osradar.com/?p=15953">How To Create CentOS 8 Local Repository Mirrors With Rsync &amp; Nginx</a></p>



<p>Now, move towards our tutorial,</p>



<h3><strong>Step 1: Creating a Product</strong></h3>



<p>Create a product on CLI or from the web console.</p>



<h4><strong>From CLI:</strong></h4>



<p><strong>List organizations</strong></p>



<pre class="wp-block-verse">hammer organization list</pre>



<p><strong>Create Product</strong></p>



<pre class="wp-block-verse">hammer product create --organization-id 1 \</pre>



<p><strong>From Web Console</strong></p>



<p>Go to <strong>Products&gt; Create Product</strong></p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="637" height="151" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/create-product.jpg" alt="" class="wp-image-15963" srcset="https://www.osradar.com/wp-content/uploads/2019/11/create-product.jpg 637w, https://www.osradar.com/wp-content/uploads/2019/11/create-product-300x71.jpg 300w" sizes="(max-width: 637px) 100vw, 637px" /></figure></div>



<p>Type your product details &amp; click the save button to finish creating your product.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="636" height="336" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/save-product-details-1.jpg" alt="" class="wp-image-15966" srcset="https://www.osradar.com/wp-content/uploads/2019/11/save-product-details-1.jpg 636w, https://www.osradar.com/wp-content/uploads/2019/11/save-product-details-1-300x158.jpg 300w" sizes="(max-width: 636px) 100vw, 636px" /></figure></div>



<h3><strong>Step 2: Import CentOS 8 GPG Key</strong></h3>



<p><strong>From CLI</strong></p>



<pre class="wp-block-verse">mkdir /etc/pki/rpm-gpg/import/<br> cd /etc/pki/rpm-gpg/import/<br> wget https://www.centos.org/keys/RPM-GPG-KEY-CentOS-Official<br> hammer gpg create --organization-id 1 \<br>   --key "RPM-GPG-KEY-CentOS-Official" \<br>   --name "RPM-GPG-KEY-CentOS-8"</pre>



<p>Navigate to <strong>Content &gt; Credential &gt; New Content Credential </strong>to create key from Web Console.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="646" height="220" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/content-credentials-2.jpg" alt="" class="wp-image-15968" srcset="https://www.osradar.com/wp-content/uploads/2019/11/content-credentials-2.jpg 646w, https://www.osradar.com/wp-content/uploads/2019/11/content-credentials-2-300x102.jpg 300w" sizes="(max-width: 646px) 100vw, 646px" /></figure></div>



<p>Provide all information like -Name, Type &amp; Paste the key content or use the below button to upload.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="638" height="441" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/11/save-credentialls-detaisl.jpg" alt="" class="wp-image-15969" srcset="https://www.osradar.com/wp-content/uploads/2019/11/save-credentialls-detaisl.jpg 638w, https://www.osradar.com/wp-content/uploads/2019/11/save-credentialls-detaisl-300x207.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/11/save-credentialls-detaisl-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/11/save-credentialls-detaisl-218x150.jpg 218w, https://www.osradar.com/wp-content/uploads/2019/11/save-credentialls-detaisl-608x420.jpg 608w" sizes="(max-width: 638px) 100vw, 638px" /></figure></div>



<h3><strong>Step 3: Create Repositories</strong></h3>



<p>Now you can add the new repositories to the newly created product.</p>



<p><strong>Hammer CLI</strong></p>



<p>BaseOS repository</p>



<pre class="wp-block-verse"> <code>hammer repository create </code><br><code>--organization-id 1 \   </code><br><code>--product "CentOS 8 Linux for x86_64" \   </code><br><code>--name "CentOS 8 Base RPMS" \   --label "CentOS_8_Base_RPMS" \   </code><br><code>--content-type "yum" \   --download-policy "on_demand" \   </code><br><code>--gpg-key "RPM-GPG-KEY-CentOS-8" \   --url "http://centos.mirror.liquidtelecom.com/8/BaseOS/x86_64/os/" \   </code><br><code>--mirror-on-sync "no"</code> </pre>



<p><strong>AppStream repository</strong></p>



<pre class="wp-block-verse">hammer repository create --organization-id 1 \<br>   --product "CentOS 8 Linux for x86_64" \<br>   --name "CentOS 8 AppStream RPMS" \<br>   --label "CentOS_8_AppStream_RPMS" \<br>   --content-type "yum" \<br>   --download-policy "on_demand" \<br>   --gpg-key "RPM-GPG-KEY-CentOS-8" \<br>   --url "http://centos.mirror.liquidtelecom.com/8/AppStream/x86_64/os/" \<br>   --mirror-on-sync "no"</pre>



<p><strong>PowerTools repository</strong></p>



<pre class="wp-block-verse">hammer repository create --organization-id 1 \<br>
  --product "CentOS 8 Linux for x86_64" \<br>
  --name "CentOS 8 PowerTools RPMS" \<br>
  --label "CentOS_8_PowerTools_RPMS" \<br>
  --content-type "yum" \<br>
  --download-policy "on_demand" \<br>
  --gpg-key "RPM-GPG-KEY-CentOS-8" \<br>
  --url "http://centos.mirror.liquidtelecom.com/8/PowerTools/x86_64/os/" \<br>
  --mirror-on-sync "no"</pre>



<p><strong>Centosplus repository</strong></p>



<pre class="wp-block-verse">hammer repository create --organization-id 1 \<br>   --product "CentOS 8 Linux for x86_64" \<br>   --name "CentOS 8 centosplus RPMS" \<br>   --label "CentOS_8_centosplus_RPMS" \<br>   --content-type "yum" \<br>   --download-policy "on_demand" \<br>   --gpg-key "RPM-GPG-KEY-CentOS-8" \<br>   --url "http://centos.mirror.liquidtelecom.com/8/centosplus/x86_64/os/" \<br>   --mirror-on-sync "no"</pre>



<p><strong>Extras repository</strong></p>



<pre class="wp-block-verse">hammer repository create --organization-id 1 \<br>
  --product "CentOS 8 Linux for x86_64" \<br>
  --name "CentOS 8 extras RPMS" \<br>
  --label "CentOS_8_extras_RPMS" \<br>
  --content-type "yum" \<br>
  --download-policy "on_demand" \<br>
  --gpg-key "RPM-GPG-KEY-CentOS-8" \<br>
  --url "http://centos.mirror.liquidtelecom.com/8/extras/x86_64/os/" \<br>
  --mirror-on-sync "no"</pre>



<p>Run the following command to list &amp; view the repositories in the Product.</p>



<pre class="wp-block-verse">hammer repository list <br>--organization-id 1 <br>--product "CentOS Linux for x86_64"</pre>



<pre class="wp-block-verse"> <code>$ hammer repository list --organization-id 1 --product "CentOS 8 Linux for x86_64" </code><br><code>---|--------------------------|---------------------------|--------------|--------------------------------------------------------------- </code><br><code>ID | NAME                     | PRODUCT                   | CONTENT TYPE | URL </code><br><code>---|--------------------------|---------------------------|--------------|--------------------------------------------------------------- </code><br><code>65 | CentOS 8 AppStream RPMS  | CentOS 8 Linux for x86_64 | yum          | http://centos.mirror.liquidtelecom.com/8/AppStream/x86_64/os/ </code><br><code>64 | CentOS 8 Base RPMS       | CentOS 8 Linux for x86_64 | yum          | http://centos.mirror.liquidtelecom.com/8/BaseOS/x86_64/os/ </code><br><code>67 | CentOS 8 centosplus RPMS | CentOS 8 Linux for x86_64 | yum          | http://centos.mirror.liquidtelecom.com/8/centosplus/x86_64/os/ </code><br><code>68 | CentOS 8 extras RPMS     | CentOS 8 Linux for x86_64 | yum          | http://centos.mirror.liquidtelecom.com/8/extras/x86_64/os/ </code><br><code>66 | CentOS 8 PowerTools RPMS | CentOS 8 Linux for x86_64 | yum          | http://centos.mirror.liquidtelecom.com/8/PowerTools/x86_64/os/ </code><br><code>---|--------------------------|---------------------------|--------------|---------------------------------------------------------------</code> </pre>



<p><strong>From Web Console</strong></p>



<p>We can achieve the same from the Foreman / Satellite web dashboard.</p>



<p>To achieve this go to <strong>Products &gt; Repositories.</strong></p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="639" height="330" src="https://www.osradar.com/wp-content/uploads/2019/11/list-repositories-1.jpg" alt="" class="wp-image-15971" srcset="https://www.osradar.com/wp-content/uploads/2019/11/list-repositories-1.jpg 639w, https://www.osradar.com/wp-content/uploads/2019/11/list-repositories-1-300x155.jpg 300w" sizes="(max-width: 639px) 100vw, 639px" /></figure></div>



<h3><strong>Step 4: Sync Repositories</strong></h3>



<p>Now you are able to Sync your repositories to your local Satellite / Katello server.</p>



<p><strong>From CLI</strong></p>



<pre class="wp-block-verse">list repositories</pre>



<pre class="wp-block-verse"> <code>$ hammer repository list --organization-id 1 --product "CentOS 8 Linux for x86_64" </code><br><code>---|--------------------------|---------------------------|--------------|--------------------------------------------------------------- ID | NAME                     | PRODUCT                   | CONTENT TYPE | URL </code><br><code>---|--------------------------|---------------------------|--------------|--------------------------------------------------------------- </code><br><code>65 | CentOS 8 AppStream RPMS  | CentOS 8 Linux for x86_64 | yum          | http://centos.mirror.liquidtelecom.com/8/AppStream/x86_64/os/ </code><br><code>64 | CentOS 8 Base RPMS       | CentOS 8 Linux for x86_64 | yum          | http://centos.mirror.liquidtelecom.com/8/BaseOS/x86_64/os/ </code><br><code>67 | CentOS 8 centosplus RPMS | CentOS 8 Linux for x86_64 | yum          | http://centos.mirror.liquidtelecom.com/8/centosplus/x86_64/os/ </code><br><code>68 | CentOS 8 extras RPMS     | CentOS 8 Linux for x86_64 | yum          | http://centos.mirror.liquidtelecom.com/8/extras/x86_64/os/ </code><br><code>66 | CentOS 8 PowerTools RPMS | CentOS 8 Linux for x86_64 | yum          | http://centos.mirror.liquidtelecom.com/8/PowerTools/x86_64/os/</code><br><code> ---|--------------------------|---------------------------|--------------|---------------------------------------------------------------</code> </pre>



<p>Look over th <strong>IDs</strong> then loop through to sync the repositories.</p>



<pre class="wp-block-verse">for i in $(seq 64 68); do \<br>
  hammer repository synchronize --async --organization-id 1 \<br>
  --product "CentOS 8 Linux for x86_64" \<br>
  --id "$i"; \<br>
  done</pre>



<p>Make sure status is working properly.</p>



<pre class="wp-block-verse"> <code>$ hammer product list  --name "CentOS 8 Linux for x86_64" --organization-id 1 </code><br><code>---|---------------------------|----------------------------------------|---------------|--------------|------------------ ID | NAME                      | DESCRIPTION                            | ORGANIZATION  | REPOSITORIES | SYNC STATE </code><br><code>---|---------------------------|----------------------------------------|---------------|--------------|------------------ </code><br><code>37 | CentOS 8 Linux for x86_64 | Repositories for CentOS 8 Linux x86_64 | Mycompany LTD | 5            | Syncing Complete. </code><br><code>---|---------------------------|----------------------------------------|---------------|--------------|------------------</code> </pre>



<p>You can also run a sync from web console dashboard.</p>



<h3><strong>Step 5: Create a Content View</strong></h3>



<p>Follow this command to create content view</p>



<pre class="wp-block-verse"> <code>hammer content-view create --organization-id 1 \</code><br><code>--name "CentOS_8" \   </code><br><code>--description "Content view for CentOS 8"</code> </pre>



<h3><strong>Add repositories to Content View</strong></h3>



<pre class="wp-block-verse">for i in $(seq 64 68); do \  <code> </code><br><code>hammer content-view add-repository --organization-id 1 \   </code><br><code>--name "CentOS_8" \   </code><br><code>--product "CentOS 8 Linux for x86_64" \   </code><br><code>--repository-id "$i"; \   </code><br><code>done</code> </pre>



<h3><strong>Step 7: Publish Content View</strong></h3>



<pre class="wp-block-verse"> <code>hammer content-view publish --organization-id 1 \   </code><br><code>--name "CentOS_8" \   </code><br><code>--description "Publishing repositories"</code> </pre>



<h3><strong> Create an Activation Key</strong></h3>



<pre class="wp-block-verse"> <code>$ hammer lifecycle-environment list --organization-id 1 </code><br><code>---|---------|------ </code><br><code>ID | NAME    | PRIOR </code><br><code>---|---------|------ </code><br><code>1  | Library | </code><br><code>---|---------|------</code> </pre>



<pre class="wp-block-verse">$ hammer activation-key create --organization-id 1 \<br>   --name "centos8" \<br>   --description "CentOS 8 Activation Key" \<br>   --lifecycle-environment "Library" \<br>   --content-view "CentOS_8" \<br>   --unlimited-hosts<br> $ hammer activation-key list --organization-id 1<br> ---|-----------------|------------------|-----------------------|--------------------------<br>  <code>ID | NAME            | HOST LIMIT       | LIFECYCLE ENVIRONMENT | CONTENT VIEW              ---|-----------------|------------------|-----------------------|-------------------------- </code><br><code>1  | centos7         | 0 of Unlimited   |                       |                           2  | centos8         | 0 of Unlimited   |                       |                           ---|-----------------|------------------|-----------------------|--------------------------</code> </pre>



<h3><strong>Step 9: Add Subscription to Activation Key</strong></h3>



<pre class="wp-block-verse">hammer subscription list --organization-id 1</pre>



<pre class="wp-block-verse"> <code>hammer activation-key add-subscription --organization-id 1 \   </code><br><code>--name "centos8" \   </code><br><code>--quantity "1" \   </code><br><code>--subscription-id "164"</code> </pre>



<p>Where <strong>164 </strong>is the id of the subscription shown by the last command.</p>



<h3><strong>Step 10: Subscribe CentOS 8 Machine to Satellite / Foreman (Katello)</strong></h3>



<p>Our repositories are now ready to be consumed by CentOS clients. </p>



<p>Follow this guide to learn;</p>



<p><a href="https://www.osradar.com/?p=15950">How To Subscribe CentOS Server to Katello/Foreman</a></p>



<p>Congratulations! You&#8217;ve all done. If have any queries regarding this tutorial guide, feel free to ask.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-sync-centos-8-repositories-on-satellite-katello-foreman/">How To Sync CentOS 8 repositories on Satellite / Katello / Foreman</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-sync-centos-8-repositories-on-satellite-katello-foreman/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Foreman on  Ubuntu 18.04?</title>
		<link>https://www.osradar.com/how-to-install-foreman-on-ubuntu-18-04/</link>
					<comments>https://www.osradar.com/how-to-install-foreman-on-ubuntu-18-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Fri, 07 Dec 2018 02:25:04 +0000</pubDate>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[Foreman]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=8064</guid>

					<description><![CDATA[<p>Managing servers on many occasions can become a difficult task for engineers. Especially because it doesn&#8217;t necessarily have to be one but several. With this, multiple circumstances increase significantly. So, today, I will teach you how to install Foreman an extraordinary application to help you with this task. Foreman is a complete lifecycle management tool [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-foreman-on-ubuntu-18-04/">How to install Foreman on  Ubuntu 18.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>Managing servers on many occasions can become a difficult task for engineers. Especially because it doesn&#8217;t necessarily have to be one but several. With this, multiple circumstances increase significantly. So, today, I will teach you how to install Foreman an extraordinary application to help you with this task.</p>
<p><a href="https://www.theforeman.org/" rel="noopener">Foreman</a> is a complete lifecycle management tool for physical and virtual servers. One of its most powerful features is to provide the opportunity to manage multiple servers from a single web interface. In addition, you can perform multiple tasks on several occasions. That is, task automation</p>
<p>Moreover, it is configurable through plugins and an extensive API development. So, let&#8217;s install Foreman.</p>
<h1>1. Edit /etc/hosts file</h1>
<p>First of all, it is necessary to update the /etc/hosts file so that it points to the hostname of the server.</p>
<pre class="">:~$ sudo nano /etc/hosts</pre>
<p><figure id="attachment_8091" aria-describedby="caption-attachment-8091" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8091" src="https://www.osradar.com/wp-content/uploads/2018/12/1-5.png" alt="1.- Editing the /etc/hosts file" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/1-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/1-5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/1-5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/1-5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/1-5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/1-5-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8091" class="wp-caption-text">1.- Editing the /etc/hosts file</figcaption></figure></p>
<p>Next, set the correct hostname.</p>
<pre class="">:~$ sudo hostnamectl set-hostname foreman.osradar.local</pre>
<p><figure id="attachment_8092" aria-describedby="caption-attachment-8092" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8092" src="https://www.osradar.com/wp-content/uploads/2018/12/2-5.png" alt="2.- Setting the hostname" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/2-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/2-5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/2-5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/2-5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/2-5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/2-5-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8092" class="wp-caption-text">2.- Setting the hostname</figcaption></figure></p>
<p>Now, you can continue.</p>
<h1>2. Install some required packages</h1>
<p>Before starting the Foreman installation it is necessary to install some necessary packages.</p>
<pre class="">:~$ sudo apt install ca-certificates wget</pre>
<p><figure id="attachment_8094" aria-describedby="caption-attachment-8094" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8094" src="https://www.osradar.com/wp-content/uploads/2018/12/3-5.png" alt="3.- Installing some required packages" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/3-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/3-5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/3-5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/3-5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/3-5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/3-5-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8094" class="wp-caption-text">3.- Installing some required packages</figcaption></figure></p>
<p>Among the installed packages is wget that I will use to download the file to add the Foreman repository.</p>
<h1>3. Install Foreman from an external repository</h1>
<p>Now the next step is to install Foreman, however, I will do it adding an external repository to do it later from APT.</p>
<p>First, add the puppet repository.</p>
<pre class="">:~$ wget https://apt.puppetlabs.com/puppet5-release-bionic.deb</pre>
<p><figure id="attachment_8115" aria-describedby="caption-attachment-8115" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8115" src="https://www.osradar.com/wp-content/uploads/2018/12/4-5.png" alt="4.- Getting the repository file" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/4-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/4-5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/4-5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/4-5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/4-5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/4-5-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8115" class="wp-caption-text">4.- Getting the repository file</figcaption></figure></p>
<p>Then, install the package.</p>
<pre class="">:~$ sudo dpkg -i puppet5-release-bionic.deb</pre>
<p><figure id="attachment_8116" aria-describedby="caption-attachment-8116" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8116" src="https://www.osradar.com/wp-content/uploads/2018/12/5-5.png" alt="5.- Installing the repository package" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/5-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/5-5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/5-5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/5-5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/5-5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/5-5-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8116" class="wp-caption-text">5.- Installing the repository package</figcaption></figure></p>
<p>Now, you can add the Foreman repository.</p>
<pre class="">:~$ echo "deb http://deb.theforeman.org/ bionic 1.20" | sudo tee /etc/apt/sources.list.d/foreman.list
:~$ echo "deb http://deb.theforeman.org/ plugins 1.20" | sudo tee -a /etc/apt/sources.list.d/foreman.list
:~$ wget -q https://deb.theforeman.org/pubkey.gpg -O- | sudo apt-key add -</pre>
<p><figure id="attachment_8117" aria-describedby="caption-attachment-8117" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8117" src="https://www.osradar.com/wp-content/uploads/2018/12/6-5.png" alt="6.- Adding the Foreman repository" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/6-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/6-5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/6-5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/6-5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/6-5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/6-5-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8117" class="wp-caption-text">6.- Adding the Foreman repository</figcaption></figure></p>
<p>Then, install Foreman installer package.</p>
<pre class="">:~$ sudo apt install foreman-installer</pre>
<p><figure id="attachment_8118" aria-describedby="caption-attachment-8118" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8118" src="https://www.osradar.com/wp-content/uploads/2018/12/7-5.png" alt="7.- Installing some package" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/7-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/7-5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/7-5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/7-5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/7-5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/7-5-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8118" class="wp-caption-text">7.- Installing some package</figcaption></figure></p>
<p>Finally, run the installer.</p>
<pre class="">:~$ sudo foreman-installer</pre>
<p><figure id="attachment_8119" aria-describedby="caption-attachment-8119" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8119" src="https://www.osradar.com/wp-content/uploads/2018/12/8-5.png" alt="8.- Install Foreman on Ubuntu" width="1366" height="768" srcset="https://www.osradar.com/wp-content/uploads/2018/12/8-5.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/8-5-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/8-5-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/8-5-1024x576.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/8-5-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/8-5-747x420.png 747w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8119" class="wp-caption-text">8.- Install Foreman on Ubuntu</figcaption></figure></p>
<p>It will take a while because it will download several packages and perform the entire installation process. If all goes well, you will find the credentials to access along with the address to which you should go from the web browser.</p>
<p><figure id="attachment_8120" aria-describedby="caption-attachment-8120" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8120" src="https://www.osradar.com/wp-content/uploads/2018/12/9-4.png" alt="9.- Foreman log in screen" width="1366" height="671" srcset="https://www.osradar.com/wp-content/uploads/2018/12/9-4.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/9-4-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/9-4-768x377.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/9-4-1024x503.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/9-4-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2018/12/9-4-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/9-4-855x420.png 855w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8120" class="wp-caption-text">9.- Foreman log in screen</figcaption></figure></p>
<p>You will see this.</p>
<p><figure id="attachment_8121" aria-describedby="caption-attachment-8121" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-8121" src="https://www.osradar.com/wp-content/uploads/2018/12/10-4.png" alt="10.- Foreman main screen" width="1366" height="671" srcset="https://www.osradar.com/wp-content/uploads/2018/12/10-4.png 1366w, https://www.osradar.com/wp-content/uploads/2018/12/10-4-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2018/12/10-4-768x377.png 768w, https://www.osradar.com/wp-content/uploads/2018/12/10-4-1024x503.png 1024w, https://www.osradar.com/wp-content/uploads/2018/12/10-4-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2018/12/10-4-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2018/12/10-4-855x420.png 855w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-8121" class="wp-caption-text">10.- Foreman main screen</figcaption></figure></p>
<p>If your Foreman host is not listed, then run this command.</p>
<pre class="">:~$ sudo /opt/puppetlabs/bin/puppet agent --test</pre>
<p>And that&#8217;s it.</p>
<h1>Conclusion</h1>
<p>As you can notice, the installation of Foreman is something not very complex to do in <a href="https://www.osradar.com/install-vagrant-in-ubuntu-18-mint-19/">Ubuntu</a> 18.04. It is an extraordinary tool to manage multiple servers and services.</p>
<p>Any modern server is able to run this application without problems, however, take into account the number of dependencies needed. I would tell you that 16Gb of Ram should suffice.</p>
<p>If you want to broaden your knowledge, I recommend you visit <a href="https://www.theforeman.org/documentation.html">Foreman&#8217;s official documentation</a> to take full advantage of this great tool.</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-foreman-on-ubuntu-18-04/">How to install Foreman on  Ubuntu 18.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-on-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
