Installing Spacewalk
Here's a quick procedure for installing Spacewalk.
Server
- You'll need a big partition for /var/satellite to store all the packages for every repository you keep.
- Install the Spacewalk RPM:
rpm -Uvh http://yum.spacewalkproject.org/2.3/RHEL/7/x86_64/spacewalk-repo-2.3-4.el7.noarch.rpm
. - Repos required for server and all client hosts
cat > /etc/yum.repos.d/jpackage-generic.repo << EOF [jpackage-generic] name=JPackage generic mirrorlist=http://www.jpackage.org/mirrorlist.php?dist=generic&type=free&release=5.0 enabled=1 gpgcheck=1 gpgkey=http://www.jpackage.org/jpackage.asc EOF
yum install spacewalk-setup-postgresql
yum install spacewalk-postgresql
- Spacewalk answer file
admin-email = ops@example.com ssl-set-org = Example ssl-set-org-unit = Operations ssl-set-city = Toronto ssl-set-state = Ontario ssl-set-country = CA ssl-password = XXXXXXXXXX ssl-set-email = ops@example.com ssl-config-sslvhost = Y db-backend=postgresql db-name=spaceschema db-user=spaceuser db-password=XXXXXXXXXX db-host=localhost db-port=5432 enable-tftp=Y
spacewalk-setup --disconnected --answer-file=
- Point your browser to https://spacewalk.example.com/rhn/YourRhn.do
Client
yum install rhn-client-tools rhn-check rhn-setup rhnsd m2crypto yum-rhn-plugin
rhnreg_ks --serverUrl=http://pmanager/XMLRPC --activationkey=1-xxxxxxxxxxxx
- Remove all past repositories.
Configuration management fans will automate this!
OSA
OSA is an extra agent that allows for near real time patching.
- On client
rpm --import http://yum.spacewalkproject.org/RPM-GPG-KEY-spacewalk-2014 rpm -Uvh http://pmanager/pub/rhn-org-trusted-ssl-cert-1.0-1.noarch.rpm yum install osad
- On server
yum install osa-dispatcher
Spacewalk workflow suggestions
- Parent channels are empty and represent testing and production.
- All packages are synced in testing child channels.
- All packages for production are from cloned testing child channels.
Sign on using external LDAP
- Install pam-devel package
- Create pam file
cat << EOF > /etc/pam.d/rhn-satellite auth required pam_env.so auth sufficient pam_sss.so auth required pam_deny.so account sufficient pam_sss.so account required pam_deny.so EOF
- Restart Spacewalk and sign on.