Ricozome Wiki

Piste:

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
pages_it:provisioning:theforeman [2017/09/07 14:30]
ebelhomme [Mirror a Yum repository]
pages_it:provisioning:theforeman [2017/09/08 07:20] (Version actuelle)
ebelhomme [The Foreman installation with Katello support]
Ligne 11: Ligne 11:
  
 More readings : More readings :
 +  * https://theforeman.org/
 +  * https://theforeman.org/plugins/katello/index.html
   * https://access.redhat.com/documentation/fr-FR/Red_Hat_Satellite/6.0/html-single/Installation_Guide/   * https://access.redhat.com/documentation/fr-FR/Red_Hat_Satellite/6.0/html-single/Installation_Guide/
   * https://www.linuxtechi.com/katello-download-yum-repositories-register-clients-for-patching/   * https://www.linuxtechi.com/katello-download-yum-repositories-register-clients-for-patching/
Ligne 17: Ligne 19:
  
 === Software === === Software ===
 +
 Foreman/Katello install on amd64 arch excusively, and can run on RHEL/CentOS 6 or 7. Foreman/Katello install on amd64 arch excusively, and can run on RHEL/CentOS 6 or 7.
  
 === Hardware === === Hardware ===
 +
 12GB are highly recommended. 12GB are highly recommended.
  
Ligne 27: Ligne 31:
  
 === Storage === === Storage ===
-^ mountpoint  ^  size  ^ comments  ^+
 Red Hat strongly recommends to use **LVM** for partitioning, and **XFS** as filesystem for storage and database. Red Hat strongly recommends to use **LVM** for partitioning, and **XFS** as filesystem for storage and database.
  
 +^ mountpoint  ^  size  ^ comments  ^
 | /  |  10GB  | base system  | | /  |  10GB  | base system  |
 | /var/lib/pulp  |  500GB+  | storage for mirrored repositories | | /var/lib/pulp  |  500GB+  | storage for mirrored repositories |
Ligne 334: Ligne 339:
 On the Menu bar, click on //**Content**//, then on //**Activation Keys**// menu item On the Menu bar, click on //**Content**//, then on //**Activation Keys**// menu item
 <newcolumn> <newcolumn>
-{{ :pages_it:provisioning:foreman_activationkeyss_1.png?direct|}}+{{ :pages_it:provisioning:foreman_activationkeys_1.png?direct|}}
 </columns> </columns>
 ---- ----
Ligne 340: Ligne 345:
 Click on //**Create Activation Key**// Button Click on //**Create Activation Key**// Button
 <newcolumn> <newcolumn>
-{{ :pages_it:provisioning:foreman_activationkeyss_2.png?direct|}}+{{ :pages_it:provisioning:foreman_activationkeys_2.png?direct|}}
 </columns> </columns>
 ---- ----
Ligne 352: Ligne 357:
 Then click on //**Save**// button. Then click on //**Save**// button.
 <newcolumn> <newcolumn>
-{{ :pages_it:provisioning:foreman_activationkeyss_3.png?direct|}}+{{ :pages_it:provisioning:foreman_activationkeys_3.png?direct|}}
 </columns> </columns>
 ---- ----
 <columns - -> <columns - ->
 +Once the key is created, it can be used to register client hosts to this system by using the following command : 
 +<code> 
 +subscription-manager register --org="orga_axians_aix" --activationkey="Axians Aix production key" 
 +</code>
 <newcolumn> <newcolumn>
-{{ :pages_it:provisioning:foreman_activationkeyss_4.png?direct|}}+{{ :pages_it:provisioning:foreman_activationkeys_4.png?direct|}}
 </columns> </columns>
 ---- ----
 ==== Configure client host ==== ==== Configure client host ====
  
-  Install necessary packages+=== Prerequisites === 
 + 
 +The target system must have the required package installed prior registration : 
 +  **subscription-manager** normally comes from distribution's official repository or installation media, 
 +  * **katello-ca-consumer-katello.xxx** must by downloaded from the Katello server itself. 
 + 
 +In the following example, the Foreman/Katello server IP address is **192.168.122.178** and its FQDN is **katello.internal.lan** :
 <code shell> <code shell>
 yum install -y subscription-manager yum install -y subscription-manager
Ligne 369: Ligne 383:
 </code> </code>
  
-  * register the server to Katello server+=== Client registration === 
 + 
 +In order to register a client host to Katello, you need to provide the following elements : 
 +  * the **oraganization** name, in our example, the organization name is //**orga_axians_aix**//, 
 +  * the **activation key**. in our axample,  the key is "**Axians Aix production key**"
 <code shell> <code shell>
 subscription-manager register --org="orga_axians_aix" --activationkey="Axians Aix production key" subscription-manager register --org="orga_axians_aix" --activationkey="Axians Aix production key"
Ligne 377: Ligne 395:
 </code> </code>
  
-List available subscriptions :+=== List available subscriptions ===
  
 <code> <code>
Ligne 399: Ligne 417:
 </code> </code>
  
-Attach to a subscription :+=== Attach to a subscription ===
 <code> <code>
   subscription-manager attach --pool=4028fa325e577a77015e5b0d989a0025   subscription-manager attach --pool=4028fa325e577a77015e5b0d989a0025
   Successfully attached a subscription for: EPEL7 for CentOS/RHEL   Successfully attached a subscription for: EPEL7 for CentOS/RHEL
 </code> </code>