spacewalk.ansible/README.md

46 lines
1.3 KiB
Markdown
Raw Normal View History

2016-04-15 16:45:16 +02:00
Spacewalk playbooks and roles
==============
2016-04-15 16:55:33 +02:00
Install a full Spacewalk server on CentOS 7 and also adds customizations:
2016-04-15 16:45:16 +02:00
- CentOS 6 repo, channel and activation key (+epel)
- CentOS 7 repo, channel and activation key(+epel)
2016-04-15 16:55:33 +02:00
- Ubuntu 14.04 repo, channel and activation key (and repo sync scripts)
- Ubuntu 12.04 repo, channel and activation key (and repo sync scripts)
2016-04-15 16:45:16 +02:00
2016-04-15 16:55:33 +02:00
Thanks to geerlingguy's iptables role, which is included here to configure the firewall on the server.
2016-04-15 16:48:10 +02:00
2016-04-15 16:55:33 +02:00
####To do:
2016-04-15 16:45:16 +02:00
2016-04-18 18:07:12 +02:00
- Add Ubuntu support to client role
- Add Ubuntu
2016-04-15 16:45:16 +02:00
- Update client role to automatically pick EPEL for activation key
- Look at also adding Debian Jessie/Wheezy
2016-04-15 16:47:11 +02:00
2016-04-18 18:07:12 +02:00
What my inventory (/etc/ansible/hosts) looks like:
2016-04-15 16:47:11 +02:00
```
[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
2016-04-15 16:55:33 +02:00
```
###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
2016-04-18 18:07:12 +02:00
```
Extra credits: