cookbook 'ec2-tags-ohai-plugin', '= 0.1.0'
ec2-tags-ohai-plugin (5) Versions 0.1.0 Follow1
Ohai plugin for getting EC2 Tags
cookbook 'ec2-tags-ohai-plugin', '= 0.1.0', :supermarket
knife supermarket install ec2-tags-ohai-plugin
knife supermarket download ec2-tags-ohai-plugin
ec2-tags-ohai-plugin
Installation
In order to use this plugin you will need ensure that the following are in your
runlist:
- recipe[aws]
- recipe[ec2-tags-ohai-plugin]
The aws
recipe is required as it installs the aws-sdk-core
gem into the chef
ruby.
Usage
Once the plugin has been installed by the ec2-tags-ohai-plugin
recipe,
the instance tags will be available under node['ec2']['tags']
as a hash with
the tag key being the hash key, i.e
```ruby
puts node['ec2']['tags']
{
'Name' => 'instance_name',
'my_custom_tag' => 'value'
}
Collaborator Number Metric
0.1.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Foodcritic Metric
0.1.0 passed this metric
0.1.0 failed this metric
0.1.0 passed this metric