This cookbook installs and registers a node as a Spacewalk client.
- Ubuntu 12.04, 14.04, 16.04
- CentOS/RHEL 5,6,7
default['spacewalk']['pkg_source_path'] = Chef::Config[:file_cache_path]
Public spacewalk repository settings, used if node['spacewalk']['rhel']['custom_repo']['enabled']
is set to false.
default['spacewalk']['rhel']['base_url']
- Base url to download the spacewalk client repository package. Default value is http://yum.spacewalkproject.org/2.6-client/RHELdefault['spacewalk']['rhel']['repo_version']
- Spacewalk client repository version. Default value is 2.6-0
Public spacewalk repository settings, used if node['spacewalk']['rhel']['custom_repo']['enabled']
is set to true.
default['spacewalk']['rhel']['custom_repo']['enabled']
- Enables usage of custom Yum repository for Spacewalk client install. Default: falsedefault['spacewalk']['rhel']['custom_repo']['base_url']
- Base url to be used for Custom spacewalk client repo. Default value:http://yum.spacewalkproject.org/2.6-client/RHEL/#{node['platform_version'][0]}/$basearch/
default['spacewalk']['rhel']['custom_repo']['gpg_check']
- Whether to run gpg check against the binaries from custom repository. Default value is truedefault['spacewalk']['rhel']['custom_repo']['gpg_key']
- If gpg check is enabled, this specifies the URL to retrieve the public key from. Default value ishttp://yum.spacewalkproject.org/RPM-GPG-KEY-spacewalk-2015
default['spacewalk']['reg']['key'] = 'my_activation_key'
default['spacewalk']['reg']['server'] = 'http://spacewalk.example.com'
default['spacewalk']['enable_osad'] = false
default['spacewalk']['enable_rhncfg'] = false
default['spacewalk']['rhncfg']['actions']['run'] = false # systems also need provisioning entitlement
Include spacewalk-client::rhel
in your node's run_list
and set the default['spacewalk']['reg'] attributes.
Include spacewalk-client::ubuntu
in your node's run_list
and set the default['spacewalk']['reg'] attributes.
Make sure you somehow (cookbook_file, remote_file..) put the following files in default['spacewalk']['pkg_source_path']
- apt-transport-spacewalk_1.0.6-4.1_all.deb
- python-ethtool_0.11-3_amd64.deb (dont use 0.12-1, causes segfault on xenial)
- python-rhn_2.5.72-1_all.deb
- rhn-client-tools_1.8.26-4_amd64.deb
- rhnsd_5.0.4-3_amd64.deb
- rhncfg_5.10.14-1ubuntu1_all.deb
(if you want OSAD)
- pyjabber_0.5.0-1.4ubuntu3.all.deb
- osad_5.11.27-1ubuntu1.all.deb
these versions are tested to work with Ubuntu trusty and xenial
You can build them yourself like described here http://www.devops-blog.net/spacewalk/registering-ubuntu-and-debian-servers-with-spacewalk and the OSAD packages from here https://launchpad.net/~mj-casalogic/+archive/ubuntu/spacewalk-ubuntu/+packages
Authors: Phil Schuler http://devops-blog.net