cookbook 'ec2-tags-ohai-plugin', '~> 0.2.4'
ec2-tags-ohai-plugin (5) Versions 0.2.4 Follow1
Ohai plugin for getting EC2 Tags
cookbook 'ec2-tags-ohai-plugin', '~> 0.2.4', :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[ec2-tags-ohai-plugin]
The recipe will install the required aws-sdk
gem and the ec2-tags
plugin at
compile time, so it is recommended that this is the first recipe in your runlist
so that the node data it creates can be consumed during the rest of the compilation.
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.2.4 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.2.4 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.2.4 passed this metric
No Binaries Metric
0.2.4 passed this metric
Testing File Metric
0.2.4 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.2.4 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 include a tag that matches this cookbook version number
0.2.4 failed this metric
0.2.4 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.2.4 passed this metric
No Binaries Metric
0.2.4 passed this metric
Testing File Metric
0.2.4 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.2.4 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 include a tag that matches this cookbook version number
0.2.4 passed this metric
0.2.4 passed this metric
Testing File Metric
0.2.4 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.2.4 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 include a tag that matches this cookbook version number
0.2.4 failed this metric
0.2.4 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 include a tag that matches this cookbook version number