[Spacewalk-list] Question regarding SLES & RHEL clients registered to Spacewalk

Lichtinger, Bernhard Bernhard.Lichtinger at lrz.de
Wed Jun 17 08:17:57 UTC 2015


> Am 16.06.2015 um 19:53 schrieb Jason Calafiore <jason.calafiore at gmail.com>:
> 
> Can you use the bootstrap.sh script to register the server?
Only if the spacewalk-client rpms are already installed.

I use ansible to bootstrap my SLES machines.

1. Add SW-client channel repo ("SLES11.3-x86_64" is the base channel and "sles11.3-x86_64_swclient" is the child channel with OBS spacewalk rpms):
zypper_repository: state=present repo="http://SW-SERVER/ks/dist/child/sles11.3-x86_64_swclient/SLES11.3-x86_64" name=SW_client disable_gpg_check=yes

2. Install SW-client rpms:
zypper: state=present name={{ item }}
  with_items:
        - libnewt0_52
        - python-dmidecode
        - python-ethtool
        - python-jabberpy
        - newt
        - python-newt
        - zypp-plugin-python
        - rhnlib
        - rhn-client-tools
        - zypp-plugin-spacewalk
        - rhnsd
        - rhn-setup
        - rhn-check
        - osad

3. Register machine:
rhn_register:  server_url="http://SW-SERVER/XMLRPC" activationkey="KEY" state=present

4. Install SW-Server SSL-Cert
zypper: name="http://SW-SERVER/pub/rhn-org-trusted-ssl-cert-1.0-3.noarch.rpm" state=present disable_gpg_check=yes

5. Enable osad
service: name=osad state=started enabled=true

6. Remove SW-client channel repo (I have the SW-client channel also as child channel for my machines)
zypper_repository: name=SW_client  state=absent


Regards,
Bernhard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5031 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20150617/ad813945/attachment.p7s>


More information about the Spacewalk-list mailing list