Chef Cookbook for Spacewalk server and clients
I wrote two cookbooks to work with Spacewalk and submitted them to Chefs supermarket.
- Installing Spacewalk server https://supermarket.chef.io/cookbooks/spacewalk-server
- Registering a node (RHEL/CentOS/Ubuntu) as a Spacewalk client https://supermarket.chef.io/cookbooks/spacewalk-client
Read on after the jump how to use these cookbooks. I promise its really simple tho
In your run_list include
for a basic Spacewalk server installation. Be sure to set all attributes mentioned in the README.md
You can also include
for setting up Ubuntu channel syncing and Ubuntu Errata. You have to set some extra attributes for this. Like the apt repository URLs to sync in.
Support for RHEL Errata will follow soon.
Using the client cookbook is also easy. Just include depending on your client system
default['spacewalk']['reg']['server'] = "my_spacewalk_server"
You have to put the following debs to default[‘spacewalk’][‘pkg_source_path’] because they arent in the official repos:
- rhnsd-5.0.4-3.amd64-deb.debRead here how to build them yourself