cookbook 'ohai_public_info', '= 0.1.0'
ohai_public_info (3) Versions 0.1.0 Follow0
Installs/Configures ohai_public_info.
cookbook 'ohai_public_info', '= 0.1.0', :supermarket
knife supermarket install ohai_public_info
knife supermarket download ohai_public_info
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 & 14.04
CentOS 6.5
Usage
ohai_public_info
Installs the Ohai public_info plugin and retrieves the new attributes data.
ohai_public_info 'test'
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.
node Name: just-a-node
Environment: production
FQDN: just-a-node.example.com
IP: 6.7.8.9
...
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
ohai >= 0.0.0 |
poise >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
. CHANGELOG
0.1.0
- Will B - Initial release of ohai_public_info.
License Metric
0.1.0 failed this metric
FC002: Avoid string interpolation where not required: /tmp/cook/a72e9269285d40ad7930578a/ohai_public_info/libraries/public_ip_tag.rb:21
FC031: Cookbook without metadata file: /tmp/cook/a72e9269285d40ad7930578a/ohai_public_info/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/a72e9269285d40ad7930578a/ohai_public_info/metadata.rb:1
0.1.0 failed this metric
FC031: Cookbook without metadata file: /tmp/cook/a72e9269285d40ad7930578a/ohai_public_info/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/a72e9269285d40ad7930578a/ohai_public_info/metadata.rb:1