cookbook 'chef-attributes', '~> 0.1.0'
chef-attributes (1) Versions 0.1.0 Follow0
Installs/Configures chef-attributes
cookbook 'chef-attributes', '~> 0.1.0', :supermarket
knife supermarket install chef-attributes
knife supermarket download chef-attributes
chef-attributes
Manipulate Chef Attributes on Node, Role or Environment Level on the fly.
Requirements
- Chef Client 12+
- Ohai 4+
- RubyGems 1+
Usage
Include the default recipe and override the default attributes default['chef']['level']['attributes']
wrapper cookbook
include_recipe 'chef-attributes::default'
override attribute
override['chef']['level']['attributes'] = {
'environment' => {
'Development' => {
'env.attribute.period.concatenated' => 'value',
'env.attribute.period.concatenated2' => 'value'
},
'Production' => {
'attribute.period.concatenated3' => 'value',
'attribute.period.concatenated4' => 'value'
}
},
'role' => {
'dev-role' => {
'role.attribute.period.concatenated' => 'value',
'role.attribute.period.concatenated2' => 'value'
},
},
'node' => {
'node-101' => {
'node.attribute.period.concatenated' => 'value',
'node.attribute.period.concatenated2' => 'value'
}
}
}
Platform
- CentOS, Red Hat
- Amazon Linux, Amazon
- Ubuntu, Debian
Tested on:
- CentOS 7+
- Ubuntu 16.04+
Authors
Author:: Rodel Manalo Talampas
Dependent cookbooks
ohai >= 4.0.0 |
rubygems ~> 1.1.1 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
chef-attributes Cookbook CHANGELOG
v0.1.0 (2018-03-19)
- Initial Cookbook creation
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.
Contributing File Metric
0.1.0 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.0 passed this metric
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.0 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.0 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.1.0 failed this metric
0.1.0 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.0 passed this metric
No Binaries Metric
0.1.0 passed this metric
Testing File Metric
0.1.0 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.0 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.1.0 passed this metric
0.1.0 passed this metric
Testing File Metric
0.1.0 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.0 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.1.0 failed this metric
0.1.0 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