<?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>katello Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/katello/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.12</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>
	</channel>
</rss>
