cookbook 'ultimate_config_cookbook', '= 0.1.1', :supermarket
ultimate_config_cookbook (8) Versions 0.1.1 Follow2
Installs/Configures ultimate_config_cookbook
cookbook 'ultimate_config_cookbook', '= 0.1.1'
knife supermarket install ultimate_config_cookbook
knife supermarket download ultimate_config_cookbook
Ultimate Config Cookbook for CHEF
Ultimate Config Cookbook @ CHEF Supermarket
Install
Knife
knife cookbook site install ultimate_config_cookbook
knife cookbook site download ultimate_config_cookbook
Policyfile
cookbook 'ultimate_config_cookbook', '~> 0.1.0', :supermarket
Berkshelf/Librarian
cookbook 'ultimate_config_cookbook', '~> 0.1.0'
Example
Use attributes or Hash for your config.
default['config1']['section1']['prop1'] = 'val1'
default['config1']['section1']['prop2'] = 'val2'
default['config1']['section2']['prop3'] = 'val3'
Or
config = {
'section1' => {
'prop1' => 'val1',
'prop2' => 'val2'
},
'section2' => {
'prop3' => 'val3'
}
}
Recipe
properties: - file_content - config hash, can be referanced to attribute or just Hash, for ini the use the fist level for sections. - action - Supported actions: - create - edit - create_or_edit - delete - replace
INI Example
ini_file '/tmp/4.ini' do
file_content node.default['config1']
action :create
end
JSON Example
json_file '/tmp/4.ini' do
file_content node.default['config1']
action :create
end
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.1.1 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.1 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.1 failed this metric
FC067: Ensure at least one platform supported in metadata: ultimate_config_cookbook/metadata.rb:1
Run with Foodcritic Version 12.0.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
0.1.1 passed this metric
No Binaries Metric
0.1.1 passed this metric
Publish Metric
0.1.1 passed this metric
Supported Platforms Metric
0.1.1 failed this metric
ultimate_config_cookbook should declare what platform(s) it supports.
Testing File Metric
0.1.1 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.1 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.1 failed this metric
0.1.1 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.1 failed this metric
FC067: Ensure at least one platform supported in metadata: ultimate_config_cookbook/metadata.rb:1
Run with Foodcritic Version 12.0.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
License Metric
0.1.1 passed this metric
No Binaries Metric
0.1.1 passed this metric
Publish Metric
0.1.1 passed this metric
Supported Platforms Metric
0.1.1 failed this metric
ultimate_config_cookbook should declare what platform(s) it supports.
Testing File Metric
0.1.1 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.1 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.1 failed this metric
Run with Foodcritic Version 12.0.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.1 passed this metric
No Binaries Metric
0.1.1 passed this metric
Publish Metric
0.1.1 passed this metric
Supported Platforms Metric
0.1.1 failed this metric
ultimate_config_cookbook should declare what platform(s) it supports.
Testing File Metric
0.1.1 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.1 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.1 passed this metric
0.1.1 passed this metric
Supported Platforms Metric
0.1.1 failed this metric
ultimate_config_cookbook should declare what platform(s) it supports.
Testing File Metric
0.1.1 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.1 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.1 failed this metric
0.1.1 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.1 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.1 failed this metric