Skip to content
Chef cookbook for installing the server component of Spacewalk
Branch: master
Clone or download
Pull request Compare This branch is 50 commits ahead, 2 commits behind yacn:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
attributes
files/default
recipes
templates/default
.drone.yml
.gitignore
.kitchen.yml
.rubocop.yml
.travis.yml
Berksfile
CHANGELOG.md
Gemfile
LICENSE
README.md
Rakefile
chefignore
client.rb
dna.json
dummy-validation.pem
metadata.rb

README.md

Spacewalk Server Cookbook

This cookbook installs and configures a node as a Spacewalk server. It also sets up Errata support if you like.

Requirements

  • RHEL / CentOS > 6

Recipes

Include spacewalk-server::default for basic Spacewalk installation.

Include spacewalk-server::ubuntu for setting up repo-sync and errata import for Ubuntu channels.

Include spacewalk-server::rhel for setting up repo-sync and errata import for CentOS/RHEL channels. ( write this recipe and PR please )

Include spacewalk-server::iptables to configure iptables for Spacewalk.

Attributes

default['spacewalk']['server']['db']['type'] = 'postgres'
default['spacewalk']['server']['errata'] = true # configure errata import scripts+crons
default['spacewalk']['hostname'] = node['hostname']

# Answer file configuration
default['spacewalk']['server']['admin_email'] = 'root@localhost'
default['spacewalk']['server']['ssl']['org'] = 'Spacewalk Org'
default['spacewalk']['server']['ssl']['org_unit'] = 'spacewalk'
default['spacewalk']['server']['ssl']['city'] = 'My City'
default['spacewalk']['server']['ssl']['state'] = 'My State'
default['spacewalk']['server']['ssl']['country'] = 'US'
default['spacewalk']['server']['ssl']['password'] = 'spacewalk'
default['spacewalk']['server']['ssl']['email'] = 'root@localhost'
default['spacewalk']['server']['ssl']['config_vhost'] = 'Y'
default['spacewalk']['server']['enable_tftp'] = 'Y'

# ::ubuntu configuration
# login for Spacewalk
default['spacewalk']['errata']['user'] = 'admin'
default['spacewalk']['errata']['password'] = 'admin'
# channels to be excluded from errata, like base which doesnt have updates
default['spacewalk']['errata']['exclude-channels'] = "'precise'" # multiple = "'precise','trusty'"
# when should errata be imported. should be AFTER 4:30 GMT+1 because mailinglist gzip gets updaten then
default['spacewalk']['errata']['cron']['h'] = '6'
default['spacewalk']['errata']['cron']['m'] = '0'

Author

Phil Schuler http://devops-blog.net

Based on https://github.com/yacn/spacewalk-server-chef by "Yet Another Clever Name" (admin@yacn.pw)

You can’t perform that action at this time.