cookbook 'spacewalk-server', '= 0.2.1'
spacewalk-server (7) Versions 0.2.1 Follow6
Installs/Configures a Spacewalk Server
cookbook 'spacewalk-server', '= 0.2.1', :supermarket
knife supermarket install spacewalk-server
knife supermarket download spacewalk-server
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']['sync']['user'] = 'admin'
default['spacewalk']['sync']['password'] = 'admin'
# the channels to be synced. need to manually create them in Spacewalk for the crons to work
default['spacewalk']['sync']['channels'] = {'precise' => 'http://de.archive.ubuntu.com/ubuntu/dists/precise/main/binary-amd64/',
'precise-updates' => 'http://de.archive.ubuntu.com/ubuntu/dists/precise-updates/main/binary-amd64/',
'precise-security' => 'http://de.archive.ubuntu.com/ubuntu/dists/precise-security/main/binary-amd64/'
}
# channels to be excluded from errata, like base which doesnt have updates
default['spacewalk']['errata']['exclude-channels'] = 'precise'
Author
Phil Schuler http://devops-blog.net
Based on https://github.com/yacn/spacewalk-server-chef by "Yet Another Clever Name" (admin@yacn.pw)
Dependent cookbooks
ohai >= 0.0.0 |
iptables >= 0.0.0 |
yum > 3.0.0 |
yum-epel >= 0.0.0 |
yum-fedora >= 0.0.0 |
perl >= 0.0.0 |
sudo >= 0.0.0 |
cpanminus >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
CHANGELOG for spacewalk-server
This file is used to list changes made in each version of spacewalk-server
0.2.1:
- Working repo-sync and errata import for Ubuntu channels
0.2.0:
- Fixing and refactoring to work at all and with Spacewalk 2.2
0.1.0:
- Initial release
Foodcritic Metric
0.2.1 passed this metric
0.2.1 passed this metric