cookbook 'rhn-channels', '= 1.1.2'
rhn-channels (6) Versions 1.1.2 Follow3
Manages channel subscriptions to RHN satellite network.
cookbook 'rhn-channels', '= 1.1.2', :supermarket
knife supermarket install rhn-channels
knife supermarket download rhn-channels
rhn-channels Cookbook
This cookbook contains a LWRP to manage RHN channel subscriptions. This cookbook does not manage RHN node registration, for which you should use https://github.com/bflad/chef-rhn
Github repo: https://github.com/andrewfraley/chef-rhn-channels
Usage
LWRP
Add depends "rhn-channels" to your metadata.rb, then use the rhn_channel resource to add a channel to your system. Also see the included optional_repo.rb recipe for another example.
rhn_channel "rhel-x86_64-server-optional-6" do channel_name "rhel-x86_64-server-optional-6" username "RHNUSERNAME" password "RHNPASSWORD" end
Alternatively, you can set node['rhn-channels']['rhn_user'] and node['rhn-channels']['rhn_pass'] and simply do:
ruby
rhn_channel "rhel-x86_64-server-optional-6"
Note that you do not need to set your username and password for RHEL 7
TODO
- Add support for removing rhn-channels
- Provide a list of available RHEL channels
License and Authors
- License: MIT
- Author: https://github.com/andrewfraley
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.
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.
Foodcritic Metric
1.1.2 failed this metric
FC015: Consider converting definition to a LWRP: /tmp/cook/52283eb8bd074cd7e2a36242/rhn-channels/definitions/rhn_channel.rb:1
1.1.2 failed this metric