Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

spacewalk-server (7) Versions 0.2.5

Installs/Configures a Spacewalk Server

Policyfile
Berkshelf
Knife
cookbook 'spacewalk-server', '= 0.2.5', :supermarket
cookbook 'spacewalk-server', '= 0.2.5'
knife supermarket install spacewalk-server
knife supermarket download spacewalk-server
README
Dependencies
Changelog
Quality 100%

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/'
                                           }
# when should repo sync be run. should be AFTER errata import
default['spacewalk']['sync']['cron']['h'] = '7'
default['spacewalk']['sync']['cron']['m'] = '0'
# 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)

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

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.5:

0.2.4:

  • Use perl packages from yum rather than installing/compiling with cpanminus

0.2.3:

  • Made Errata import and repo-sync cron variable and default to 6am / 7am as the mailinglist gzip is created at 5.30

0.2.2:

  • Moved Errata import prior to repo-sync

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.5 passed this metric