cookbook 'rhn-channels', '~> 2.0.0'
rhn-channels (6) Versions 2.0.0 Follow3
Manages channel subscriptions to RHN satellite network.
cookbook 'rhn-channels', '~> 2.0.0', :supermarket
knife supermarket install rhn-channels
knife supermarket download rhn-channels
rhn-channels cookbook
Manages RHN channel subscription using provided LWRP. This cookbook
does not manage the RHN registration itself. Please use the
rhn cookbook for that.
Usage
This cookbook provides the Chef LWRP rhn_channel for managing
subscriptions to satellite server channels in addition to the ones
that are subscribed by default.
Example for adding the supplementary channel for EL5 and EL6.
Older versions of RHEL require the username and password in order
to subscribe an instance to a new channel. This example uses the
chef-vault cookbook which is suggested to manage your secrets.
bag = chef_vault_item('secrets', 'rhn') rhn_channel node['rhn-channels']['supplementary'] do username bag['rhn_username'] password bag['rhn_password'] end
Example for adding supplementary channel for EL7.
Because the subscription manager handles credentials it is much,
much simpler to subscribe to a channel. There is a different
provider that manages the EL7 channel registration.
ruby
rhn_channel node['rhn-channels']['supplementary']
It is important to note that the correct provider will be used
for the platform. Even if username and password credentials are
stored and passed in they will be ignored in EL7.
Removing channels
As you would expect removing a channel is simply a different
action on the resource. For anything prior to EL7 the credentials
must be supplied. This example will work for all versions of RHEL
as long as the optional attribute is defined.
ruby
bag = chef_vault_item('secrets', 'rhn')
rhn_channel node['rhn-channels']['optional'] do
username bag['rhn_username']
password bag['rhn_password']
end
License and Authors
- License: MIT
- Author: Tenyo Grozev (tenyo.grozev@yale.edu)
- Author: John Bellone (jbellone@bloomberg.net)
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
rhn-channels CHANGELOG
This file is used to list changes made in each version of the rhn-channels cookbook.
2.0.0
- Removes default and optional-channel recipes to enforce best practices of using encrypted data bags (ideally chef-vault) for storing secrets. @johnbellone
- Rewrites LWRP to separate out provider logic for different RHEL major versions. @johnbellone
- Adds suggested and required dependencies on chef-vault and rhn cookbooks respectively. @johnbellone
- Fixes issue where sensitive data will leak in backtraces. @johnbellone
1.1.0
- Andy Fraley - Added support for RHEL 7
1.0.0
- Andy Fraley - Initial release of rhn-channels
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
2.0.0 passed this metric
Contributing File Metric
2.0.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
2.0.0 passed this metric
No Binaries Metric
2.0.0 failed this metric
Failure: Cookbook should not contain binaries. Found:
rhn-channels/recipes/default.rb
Testing File Metric
2.0.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
2.0.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 include a tag that matches this cookbook version number
2.0.0 passed this metric
2.0.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
2.0.0 passed this metric
No Binaries Metric
2.0.0 failed this metric
Failure: Cookbook should not contain binaries. Found:
rhn-channels/recipes/default.rb
Testing File Metric
2.0.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
2.0.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 include a tag that matches this cookbook version number
2.0.0 passed this metric
2.0.0 failed this metric
Failure: Cookbook should not contain binaries. Found:
rhn-channels/recipes/default.rb
Testing File Metric
2.0.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
2.0.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 include a tag that matches this cookbook version number
2.0.0 failed this metric
2.0.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 include a tag that matches this cookbook version number