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

ohai_public_info (3) Versions 0.1.2

Installs/Configures ohai_public_info.

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

Circle CI

ohai_public_info

ohai_public_info is a Chef library cookbook to install the public_info Ohai plugin and allow tagging of a node with its public IP.

Supported Platforms

  • Ubuntu 12.04
  • Ubuntu 14.04
  • CentOS 6.5

Usage

Place a dependency on the ohai_public_info cookbook in your cookbook's metadata.rb

depends 'ohai_public_info'

Then, in a recipe:

ohai_public_info 'default'

Resources

ohai_public_info

Install ohai plugin_info plugin (which populates attributes like node['public_info']['remote_ip'])

public_ip_tag

Tags the node with its node['public_info']['remote_ip'] attribute in the following form: RemoteIP:{remote_ip}, but will not add the tag if the node's 'normal' IP matches its public IP.

Examples

Install ohai plugin info and tag a node with its plublic ip

ohai_public_info 'default'
public_ip_tag 'default'
$- knife node show just-a-node

node Name:   just-a-node
Environment: production
FQDN:        just-a-node.example.com
IP:          10.0.0.1
...
Tags:        RemoteIP:9.8.7.6

Authors

Author:: Rackspace (devops-chef@rackspace.com)

License

# Copyright 2015, Rackspace Hosting
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

Dependent cookbooks

poise ~> 2.0.0
ohai >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

. CHANGELOG

0.1.1

  • Will B - Docs updates, fix broken helpers include

0.1.0

  • Will B - Initial release of ohai_public_info.

Collaborator Number Metric
            

0.1.2 failed this metric

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

Contributing File Metric
            

0.1.2 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.1.2 passed this metric

License Metric
            

0.1.2 passed this metric

No Binaries Metric
            

0.1.2 passed this metric

Publish Metric
            

0.1.2 passed this metric

Supported Platforms Metric
            

0.1.2 failed this metric

ohai_public_info should declare what platform(s) it supports.

Testing File Metric
            

0.1.2 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.1.2 passed this metric