Install Spacewalk on CentOS 7 and add clients using ansible
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Egon Rijpkema 69822a3c3f Updates and workarounds for centos 7.4 5 years ago
roles Updates and workarounds for centos 7.4 5 years ago
.gitignore Updated to also include debian security and clients (12.04 - 16.04 LTS) 6 years ago
README.md Updated readme with changes 6 years ago
spacewalk-clients.yml Added clients playbook and updated child channels 6 years ago
spacewalk.yml Updates and workarounds for centos 7.4 5 years ago

README.md

Spacewalk playbooks and roles

Install a full Spacewalk server on CentOS 7 and also adds customizations:

  • CentOS 6 base+extras+epel+updates repos, channel and activation key
  • CentOS 7 base+extras+epel+updates repos, channel and activation key
  • Ubuntu 16.06 base+security repos, channel and activation key (and repo sync scripts)
  • Ubuntu 14.04 base+security repos, channel and activation key (and repo sync scripts)
  • Ubuntu 12.04 base+security repos, channel and activation key (and repo sync scripts)

Thanks to geerlingguy's iptables role, which is included here to configure the firewall on the server.

####To do:

  • Add Ubuntu support to client role (16.04 now working and tested)
  • Look at also adding Debian Jessie/Wheezy

What my inventory (/etc/ansible/hosts) looks like:

[spacewalk-server]
spacewalk ansible_ssh_host=XXX.XXX.XXX.XXX

[spacewalk-clients]
Client01 ansible_ssh_host=XXX.XXX.XXX.XXX
Client02 ansible_ssh_host=XXX.XXX.XXX.XXX

###How to run:
####Server:

ansible-playbook spacewalk.yml

The server initial setup will take a while to run - once this is done it will prompt you if you are ready.
At this point you should browse to the newly installed spacewalk instance in your browser and set up an admin username and password.
The prompt will ask for the password to continue.

####Client:

ansible-playbook spacewalk-clients.yml

Extra credits:
Blog post: Running Ubuntu Servers with Spacewalk