cookbook 'spacewalk-server', '= 0.3.0'
spacewalk-server (7) Versions 0.3.0 Follow6
Installs/Configures a Spacewalk Server
cookbook 'spacewalk-server', '= 0.3.0', :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']['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" (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 |
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.3.0
- Updated to install Spacewalk 2.6
- removed debianSync.py script as SW 2.6 supports syncing debian repos now
- removed patch for python-debian package which has been fixed upstream by now
0.2.6
- Replaced the Perl debian-repo sync script with a overhauled Python version
- Minor bugfixes
0.2.5:
- Refactored Ubuntu Errata import. Faster and improved now. (Thx to https://github.com/pandujar for his PR on the import script !)
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
Collaborator Number Metric
0.3.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.3.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.3.0 failed this metric
FC064: Ensure issues_url is set in metadata: spacewalk-server/metadata.rb:1
FC065: Ensure source_url is set in metadata: spacewalk-server/metadata.rb:1
FC066: Ensure chef_version is set in metadata: spacewalk-server/metadata.rb:1
Run with Foodcritic Version 12.2.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
0.3.0 passed this metric
No Binaries Metric
0.3.0 passed this metric
Testing File Metric
0.3.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.3.0 passed this metric
0.3.0 failed this metric
0.3.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.3.0 failed this metric
FC064: Ensure issues_url is set in metadata: spacewalk-server/metadata.rb:1
FC065: Ensure source_url is set in metadata: spacewalk-server/metadata.rb:1
FC066: Ensure chef_version is set in metadata: spacewalk-server/metadata.rb:1
Run with Foodcritic Version 12.2.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
0.3.0 passed this metric
No Binaries Metric
0.3.0 passed this metric
Testing File Metric
0.3.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.3.0 passed this metric
0.3.0 failed this metric
FC065: Ensure source_url is set in metadata: spacewalk-server/metadata.rb:1
FC066: Ensure chef_version is set in metadata: spacewalk-server/metadata.rb:1
Run with Foodcritic Version 12.2.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.3.0 passed this metric
No Binaries Metric
0.3.0 passed this metric
Testing File Metric
0.3.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.3.0 passed this metric
0.3.0 passed this metric
0.3.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.3.0 passed this metric
0.3.0 passed this metric