• No results found

Adding the pkginventory Puppet Module

In document Red Hat Satellite 6.1 (Page 72-76)

To add the pkginventory Puppe t module to the Re d Hat Sate llite Se rve r application, download the module from https ://forge .puppe tlabs .com/ody/pkginve ntory to the bas e s ys te m whe re the Sate llite Se rve r application is ins talle d and the n follow the proce dure s be low.

Pro cedure 13.18. Uplo ading a Puppet Mo dule t o a Repo sit o ry

Puppe t module s are us ually s tore d in a cus tom re pos itory name d Puppe t Module s . This proce dure as s ume s you have made a cus tom re pos itory with that name . If you have not ye t made a cus tom re pos itory for Puppe t Module s , s e e Cre ating Cus tom Products and Re pos itorie s in the Re d Hat Sate llite 6.1 Provis ioning Guide.

1. Download the Puppe t module to the bas e s ys te m. Module s that are downloade d will have a .tar.gz e xte ns ion.

2. Click Co nt ent → Pro duct s and the n click the product name in the Name fie ld as s ociate d with the Puppe t module re pos itory. For e xample , Custom Products. 3. On the Repositories tab, s e le ct the Puppe t Module s re pos itory you want to

modify. For e xample , Puppet Modules.

4. In the Upload Puppet Module s e ction, click Browse, and navigate to the module that you downloade d.

5. Click Upload.

Pro cedure 13.19. Adding a Mo dule t o a Co nt ent View

To dis tribute a Puppe t module to clie nts , conte nt hos ts , the module mus t be applie d to a Conte nt Vie w and publis he d. Follow this proce dure to add a module to a Conte nt Vie w.

1. Click Co nt ent → Co nt ent Views and the n s e le ct a conte nt vie w from the Name me nu.

2. On the Puppet Modules tab, click Add New Module. A lis t of ins talle d module s appe ars .

3. From the Actions column, click Select a Version to s e le ct the module you want to add. A table of available ve rs ions appe ars .

4. Click Select Version ne xt to the ve rs ion of the module that you want to add. 5. Click Publish New Version to cre ate the ne w Conte nt Vie w.

6. Optionally add a de s cription and click Save.

[3] https://docs.puppetlabs.com /puppet/3.7/reference/lang_facts_and_builtin_vars.htm l#special- variables-added-by-puppet

Chapter 14. Configuring Hosts

In Re d Hat Sate llite , hos ts are clie nt s ys te ms which have Re d Hat Subs cription Manage r ins talle d. Re d Hat Subs cription Manage r s e nds update s to Re d Hat Sate llite and Re d Hat Sate llite provide s update s to the s e clie nt s ys te ms .

Hos ts mus t be re gis te re d in orde r to be manage d. Afte r a hos t has be e n re gis te re d, it can be vie we d and e dite d in the Hosts tab. This e nable s a us e r to add and manage s ubs criptions , add and re move s oftware package s , and apply update s .

14.1. Creat ing a Host

The following proce dure de s cribe s how to cre ate a hos t in Re d Hat Sate llite .

Pro cedure 14.1. T o Creat e a Ho st :

1. Click Ho st s → New Ho st .

2. On the Host tab, e nte r the re quire d de tails .

3. On the Puppet Classes tab, s e le ct the puppe t clas s e s you want to include . 4. On the Network tab, pe rform the following actions :

a. Ente r the Domain and Realm de tails . It is re quire d to s pe cify a domain to make the hos t provis ioning pos s ible . This automatically update s the Subnet lis t with a s e le ction of s uitable s ubne ts .

b. Ente r the Primary Interface de tails . If the re is a DHCP-e nable d Caps ule Se rve r on the s e le cte d s ubne t, the IP addre s s is automatically s ugge s te d. Click Suggest new to ge ne rate a diffe re nt addre s s .

c. Optionally, click Add Interface to include an additional ne twork inte rface . Se e Se ction 14.4, “Configuring an Additional Ne twork Inte rface ” for de tails . 5. On the Operating System tab, e nte r the re quire d de tails . You can s e le ct a partition

table from the drop-down lis t or e nte r a cus tom partition table in the Custom partition table fie ld. You cannot s pe cify both.

6. On the Parameters tab, click Add Parameter to add any re quire d parame te rs . This include s all Puppe t Clas s Parame te rs and Hos t Parame te rs as s ociate d with the hos t.

7. On the Additional Information tab, e nte r additional information about the hos t. 8. Click Submit to comple te your provis ioning re que s t.

14.2. Configuring a Host for Regist rat ion

Re d Hat Ente rpris e Linux hos ts re gis te r to the Re d Hat Ne twork (RHN) by de fault. You mus t update e ach hos t configuration s o that the y re gis te r to and update from the corre ct

Re d Hat Sate llite Se rve r.

Prerequisit es

Addre s s the following re quire me nts be fore proce e ding:

Hos ts mus t be us ing the following Re d Hat Ente rpris e Linux Ve rs ion: 5.8 or late r (5.7 or late r on s 390x)

6.4 or late r 7.0 or late r

All archite cture s of Re d Hat Ente rpris e Linux are s upporte d (i386, x86_64, s 390x, ppc_64)

On the Re d Hat Sate llite Se rve r, e ns ure that the date and time are corre ct and s ynchronize d with the clie nt.

On e ach clie nt s ys te m, addre s s the following re quire me nts :

Ens ure that the date and time are corre ct and s ynchronize d with the s e rve r. Enable ntpd or a s imilar time s ynchronization tool in all virtual e nvironme nts : For Re d Hat Ente rpris e Linux 6:

# chkconfig ntpd on; service ntpd start For Re d Hat Ente rpris e Linux 7:

# systemctl start chronyd; systemctl enable chronyd

The following proce dure s hows how to automatically configure your clie nt s ys te m to re gis te r to Re d Hat Sate llite .

Pro cedure 14.2. T o Aut o mat ically Co nf igure a Ho st :

1. Take note of the Re d Hat Sate llite 's fully qualifie d domain name (FQDN), for e xample satellite.example.com.

2. Ope n a te rminal cons ole and log in as root.

3. Download and ins tall a copy of the CA Ce rtificate for the hos t from the Re d Hat Sate llite FQDN:

# rpm -Uvh http://satellite.example.com/pub/katello-ca-consumer- latest.noarch.rpm

Note

katello-ca-consumer-hostname-1.0-1.noarch.rpm is an additional kate llo-ca- cons ume r rpm available that contains the s e rve r's hos tname . The katello-ca- consumer-latest.noarch.rpm rpm will always re fle ct the mos t update d ve rs ion. Both s e rve the s ame purpos e .

14.3.1. Regist ering a Host

The s e s te ps s how how to re gis te r hos ts in Re d Hat Sate llite Se rve r. Hos ts provis ione d by Sate llite Se rve r appe ar on the Ho st s page acce s s ible through Ho st s → All ho st s. Hos ts re gis te re d to the Sate llite Se rve r via Re d Hat Subs cription Manage r, which can occur e ithe r during the pos t phas e of a kicks tart or through the te rminal, will appe ar on the

Co nt ent Ho st s page acce s s ible through Ho st s → Co nt ent Ho st s.

Prerequisites

Ens ure that all s te ps in Se ction 14.2, “Configuring a Hos t for Re gis tration” have be e n comple te d.

Make s ure the re is a pre -e xis ting activation ke y for the s ys te m or cre ate an activation ke y for the s ys te m. Se e Se ction 11.1, “Cre ating an Activation Ke y” for ins tructions on cre ating an activation ke y.

Pro cedure 14.3. T o Regist er Syst ems:

1. Ope n a te rminal cons ole and login as the root us e r on the command line . 2. Cle ar old s ys te m data in pre paration for re gis te ring. This make s s ure that your

update d s ys te m data is uploade d corre ctly. # subscription-manager clean

3. Re gis te r the s ys te m us ing the Re d Hat Subs cription Manage r (RHSM): # subscription-manager register --org your_org_name -- activationkey your_activation_key

Note

Activation ke ys will allow you to add e nvironme nts , provis ioning te mplate s and dictate what s ubs criptions are available and s hould be applie d to the re gis te ring s ys te m.

The re are various options that may be adde d. For more information, us e the command man subscription-manager.

The command line output afte r the re gis tration s hould look like :

# subscription-manager register --org MyOrg --activationkey TestKey-1 The system has been registered with id: 62edc0f8-855b-4184-b1b8-

72a9dc793b96

Note

For s ys te ms with Re d Hat Ente rpris e Linux 6.3, the re le as e ve rs ion de faults to

Re d Hat Ente rpris e Linux 6 Se rve r. To e ns ure that it is pointing to the 6.3 re pos itory, follow the s e s te ps :

1. On Re d Hat Sate llite , s e le ct Ho st s → Co nt ent Ho st s. 2. Click on the Det ails tab.

3. Click the name of the hos t that ne e ds to be change d.

4. In the Content Host Content s e ction click the e dit icon to the right of Release Version.

5. Se le ct '6.3' from the Release Versio n drop-down me nu. 6. Click Save.

14.3.2. Inst alling t he Kat ello Agent

The following proce dure s hows how to ins tall the Kate llo age nt on a Sate llite 6 hos t. The katello-agent package de pe nds on the gofer package that provide s the goferd s e rvice . This s e rvice mus t be e nable d s o that the Re d Hat Sate llite Se rve r or Caps ule Se rve r can provide information about e rrata that are applicable for conte nt hos ts .

In document Red Hat Satellite 6.1 (Page 72-76)