Skip to content

Chef cookbook for installing the client component of Spacewalk

License

Notifications You must be signed in to change notification settings

kyriba/spacewalk-client-chef

 
 

Repository files navigation

spacewalk-client Cookbook

This cookbook installs and registers a node as a Spacewalk client.

Requirements

  • Ubuntu 12.04, 14.04, 16.04
  • CentOS/RHEL 5,6,7

Attributes

default['spacewalk']['pkg_source_path'] = Chef::Config[:file_cache_path]

RHEL related attributes

Public repo

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/RHEL
  • default['spacewalk']['rhel']['repo_version'] - Spacewalk client repository version. Default value is 2.6-0
Custom repo

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: false
  • default['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 true
  • default['spacewalk']['rhel']['custom_repo']['gpg_key'] - If gpg check is enabled, this specifies the URL to retrieve the public key from. Default value is http://yum.spacewalkproject.org/RPM-GPG-KEY-spacewalk-2015

Registration attributes

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

Usage

spacewalk-client::rhel

Include spacewalk-client::rhel in your node's run_list and set the default['spacewalk']['reg'] attributes.

spacewalk-client::ubuntu

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

License and Authors

Authors: Phil Schuler http://devops-blog.net

About

Chef cookbook for installing the client component of Spacewalk

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%