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

netrc (8) Versions 0.2.1

Installs/configures netrc

Policyfile
Berkshelf
Knife
cookbook 'netrc', '= 0.2.1', :supermarket
cookbook 'netrc', '= 0.2.1'
knife supermarket install netrc
knife supermarket download netrc
README
Dependencies
Quality 0%

netrc-cookbook

Release
Build Status
Code Coverage

Provides ability to manage netrc files for users with Chef.

Attributes

<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['netrc']['bag_name']</tt></td>
<td>String</td>
<td>Bag name to find Chef Vault items.</td>
<td><tt>netrc</tt></td>
</tr>
<tr>
<td><tt>['netrc']['users']</tt></td>
<td>Array</td>
<td>Users to install netrc from Chef Vault.</td>
<td><tt>[]</tt></td>
</tr>
</table>

Usage

netrc::default

The default recipe will install the netrc gem as well as include
the Chef Vault and Chef Sugar cookbooks. If the
node['netrc']['users'] attribute has been set it will use the LWRP
to create a netrc file for the specified user.

Data Bag

{
    "id": "jbellone",
    "test": {
        "machines": [
            {
                "host": "github.com",
                "login": "johnbellone",
                "password": "bacon"
            }
        ]
    },
    "beta-us-east-1": {
        "machines": []
    }
    "prod-us-east-1": {
        "machines": []
    }
}

LWRP

The resource provider can be used on its own if you are storing your
secret credentials in a separate data bag. Here's an example of a simple
data bag which stores the username and access token for a GitHub user.

item = chef_vault_item('secrets', 'github')
netrc 'jbellone' do
  host 'github.com'
  login item['username']
  password item['access_token']
end

The bag item for this example would look like:
json
{
"id": "github",
"username": "johnbellone",
"access_token": "bacon"
}

Dependent cookbooks

chef-vault >= 0.0.0
poise >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Foodcritic Metric
            

0.2.1 failed this metric

FC031: Cookbook without metadata file: /tmp/cook/5e3cf93b8cb767e3e44bf382/netrc/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/5e3cf93b8cb767e3e44bf382/netrc/metadata.rb:1