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

RSS

ipaddr_extensions (3) Versions 0.3.1

Adds the ipaddr_extensions gem to chef

Berkshelf/Librarian
Policyfile
Knife
cookbook 'ipaddr_extensions', '~> 0.3.1'
cookbook 'ipaddr_extensions', '~> 0.3.1', :supermarket
knife cookbook site install ipaddr_extensions
knife cookbook site download ipaddr_extensions
README
Dependencies
Changelog
Quality 56%

ipaddr_extensions

Adds the ipaddr_extensions gem to chef using the chef_gem provider. This adds a top-level ohai attribute called privateaddress. If there is an RFC1918 IP address, this is assigned to node.privateaddress.

Usage

Include ipaddr_extensions in your Berksfile or Cheffile:

cookbook 'ipaddr_extensions'

Include ipaddr_extensions in your node's run_list:

{
  "name":"my_node",
  "run_list": [
    "recipe[ipaddr_extensions]"
  ]
}

If a cookbook depends on knowing about private ip addresses, depend or suggest this cookbook.

include_recipe 'ipaddr_extensions'

Warning

This cookbook does terrible things that should never ever be done in Chef, nor in Ruby for that matter. It should only do this once, after which the ipaddr_extensions gem will be installed and working. There are so many reasons this could go wrong, though.

Running tests

This cookbook runs assertions as a part of a fake cookbook using test-kitchen.

bundle
bundle exec kitchen converge

The test suite depends on network bridging in vagrant. This requires an exact match of the interface name in order to work. If you run into trouble, temporarily change .kitchen.yml#L12 to match the name of your ethernet adapter.

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write you change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

CHANGELOG for ipaddr_extensions

This file is used to list changes made in each version of ipaddr_extensions.

0.1.0:

  • Initial release of ipaddr_extensions

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.3.1 failed this metric

Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric
            

0.3.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.3.1 failed this metric

FC052: Metadata uses the deprecated "suggests" keyword: ipaddr_extensions/metadata.rb:16
FC064: Ensure issues_url is set in metadata: ipaddr_extensions/metadata.rb:1
FC065: Ensure source_url is set in metadata: ipaddr_extensions/metadata.rb:1
FC066: Ensure chef_version is set in metadata: ipaddr_extensions/metadata.rb:1
Run with Foodcritic Version 12.2.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

0.3.1 passed this metric

No Binaries Metric
            

0.3.1 passed this metric

Publish Metric
            

0.3.1 passed this metric

Supported Platforms Metric
            

0.3.1 passed this metric

Testing File Metric
            

0.3.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.3.1 passed this metric