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

discovery (16) Versions 0.0.4

Installs/Configures the discovery library

Policyfile
Berkshelf
Knife
cookbook 'discovery', '= 0.0.4', :supermarket
cookbook 'discovery', '= 0.0.4'
knife supermarket install discovery
knife supermarket download discovery
README
Dependencies
Quality -%

Discovery Library

You can use the #search method to locate a role, optionally
restricted to the environment.

It will fall back to searching the local nodes run_list for roles, so
you can have less logic flow in recipes.

host = Discovery.search("any_role",
                        :node => node,
                        :environment_aware => false)

ipaddress

You can use the #ipaddress method to automatically grab a prioritised
ipaddress from a node.

The remote node will be compared against the same node, if any are in
any clouds detected by ohai (and they are in the same cloud) the local
ipv4 will be returned.

You can optionally supply a type argument specifying which ipaddress
you would like.

ipaddress = Discovery.ipaddress(:remote_node => host,
                                :node => node)
local_ipv4 = Discovery.ipaddress(:remote_node => host,
                                 :node => node,
                                 :type => :local)
public_ipv4 = Discovery.ipaddress(:remote_node => host,
                                 :node => node,
                                 :type => :public)

No quality metric results found