Skip to content

philicious/spacewalk-server-chef

 
 

Repository files navigation

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" ([email protected])

About

Chef cookbook for installing the server component of Spacewalk

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 64.0%
  • Ruby 28.7%
  • HTML 4.9%
  • Shell 2.4%