cookbook 'spacewalk-client', '= 0.2.1'
spacewalk-client (15) Versions 0.2.1 Follow3
Installs/Configures a Spacewalk client
cookbook 'spacewalk-client', '= 0.2.1', :supermarket
knife supermarket install spacewalk-client
knife supermarket download spacewalk-client
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]
default['spacewalk']['rhel']['base_url'] = 'http://yum.spacewalkproject.org/2.6-client/RHEL'
default['spacewalk']['rhel']['repo_version'] = '2.6-0'
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
Dependent cookbooks
yum-epel >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
spacewalk-client CHANGELOG
This file is used to list changes made in each version of the spacewalk-client cookbook.
0.2.1
- removed the prebuilt .deb client packages that slipped in
0.2.0
- updated the Ubuntu client package versions
- updated RHEL client repo version to 2.6-0, still was 2.2-1
0.1.12
- added client repo version as attribute for ::rhel
0.1.11
- added trigger to enable the ability to execute remote scripts
0.1.10
- refactor to be compatible with Chef 11 again due to a bug in Chef, see https://github.com/chef/chef/issues/3786
0.1.9
- install the .debs and dependencies in correct order so we dont need "apt-get -f" afterwards and avoid errors that would need to be ignored
0.1.8
- Added proper support for Ubuntu 14. The available packages from trusty repo are outdated and broken.
0.1.7
- Fixed bug with OSAD being disabled but recipe tried to notify it (PR by https://github.com/obazoud thx!)
- Fixed bug with spacewalk repo rpm not being installed
0.1.6
- Restart osad after registering with Spacewalk
0.1.5
- Install OSAD on clients if default['spacewalk']['enable_osad'] = true . Supports RHEL and Ubuntu
- Changed the .deb package filenames and removed obsolete '-deb'
0.1.4
- Bumped rhn-client-tools package to new version fixing the xmlrpclib.py workaround
- removed obsolete file xmlrpclib.py
- Allow to choose url to download spacewalk package (PR by https://github.com/obazoud thx!)
0.1.3
- Missing file for 0.1.1.
0.1.1
- Fixed the 'repodata() takes exactly 2 arguments' exception with Ubuntu clients
0.1.0
- [your_name] - Initial release of spacewalk-client
Check the Markdown Syntax Guide for help with Markdown.
The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.
Collaborator Number Metric
0.2.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.2.1 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.2.1 failed this metric
FC064: Ensure issues_url is set in metadata: spacewalk-client/metadata.rb:1
FC065: Ensure source_url is set in metadata: spacewalk-client/metadata.rb:1
FC066: Ensure chef_version is set in metadata: spacewalk-client/metadata.rb:1
FC069: Ensure standardized license defined in metadata: spacewalk-client/metadata.rb:1
Run with Foodcritic Version 12.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
0.2.1 failed this metric
spacewalk-client does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.
No Binaries Metric
0.2.1 failed this metric
Failure: Cookbook should not contain binaries. Found:
spacewalk-client/recipes/default.rb
Testing File Metric
0.2.1 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.2.1 passed this metric
0.2.1 failed this metric
0.2.1 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.2.1 failed this metric
FC064: Ensure issues_url is set in metadata: spacewalk-client/metadata.rb:1
FC065: Ensure source_url is set in metadata: spacewalk-client/metadata.rb:1
FC066: Ensure chef_version is set in metadata: spacewalk-client/metadata.rb:1
FC069: Ensure standardized license defined in metadata: spacewalk-client/metadata.rb:1
Run with Foodcritic Version 12.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
0.2.1 failed this metric
spacewalk-client does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.
No Binaries Metric
0.2.1 failed this metric
Failure: Cookbook should not contain binaries. Found:
spacewalk-client/recipes/default.rb
Testing File Metric
0.2.1 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.2.1 passed this metric
0.2.1 failed this metric
FC065: Ensure source_url is set in metadata: spacewalk-client/metadata.rb:1
FC066: Ensure chef_version is set in metadata: spacewalk-client/metadata.rb:1
FC069: Ensure standardized license defined in metadata: spacewalk-client/metadata.rb:1
Run with Foodcritic Version 12.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.2.1 failed this metric
spacewalk-client does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.
No Binaries Metric
0.2.1 failed this metric
Failure: Cookbook should not contain binaries. Found:
spacewalk-client/recipes/default.rb
Testing File Metric
0.2.1 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.2.1 passed this metric
0.2.1 failed this metric
spacewalk-client/recipes/default.rb
0.2.1 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.2.1 passed this metric
0.2.1 passed this metric