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

rhn-channels (6) Versions 2.0.0

Manages channel subscriptions to RHN satellite network.

Policyfile
Berkshelf
Knife
cookbook 'rhn-channels', '~> 2.0.0', :supermarket
cookbook 'rhn-channels', '~> 2.0.0'
knife supermarket install rhn-channels
knife supermarket download rhn-channels
README
Dependencies
Changelog
Quality 33%

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

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

1.0.0


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