> Am 16.06.2015 um 19:53 schrieb Jason Calafiore <[email protected]>: > > 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
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Spacewalk-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/spacewalk-list
