cookbook 'rc', '~> 1.6.4', :supermarket
rc
(17) Versions
1.6.4
-
Follow3
Library cookbook which provides a resource for writing runtime configuration files.
cookbook 'rc', '~> 1.6.4'
knife cookbook site install rc
knife cookbook site download rc
rc-cookbook
Library cookbook which provides a resource for writing runtime configuration files.
A runtime configuration file can come in many flavors, but ultimately the purpose is to manage them using a simple resource. The only type which is provided by default is a bash runtime configuration which is simply a key-value pair.
Basic Usage
This cookbook supports several different formats for writing out runtime configuration files from a Ruby Hash object.
Writing bashrc skeleton
Any new types can be added by modifying the resource (adding a type) and writing the appropriate erb template. The example which is used for testing purposes is writing out an bashrc skeleton file which manages HTTP proxies.
rc_file '/etc/skel/bashrc' do
type 'bash'
options(
'http_proxy' => 'http://proxy.corporate.com:80',
'https_proxy' => 'http://proxy.corporate.com:443',
'ftp_proxy' => 'http://proxy.corporate.com:80',
'no_proxy' => 'localhost,127.0.0.1'
)
end
Writing Berkshelf configuration
Additionally, this resource supports writing out standard configuration file types such as JSON, YAML and EDN. The example below shows to write out a Berkshelf configuration file in the JSON format.
rc_file '/etc/skel/berkshelf.json' do
type 'json'
options(
'cookbook' => {
'copyright' => 'Bloomberg Finance L.P.',
'email' => 'jbellone@bloomberg.net',
'license' => 'apachev2'
}
)
end
Change Log
v1.6.4 (2016-03-08)
- Fix template so that bash variables now export.
v1.6.0 (2016-03-07)
Merged pull requests:
v1.5.2 (2016-02-08)
v1.5.1 (2016-01-25)
v1.5.0 (2016-01-14)
v1.4.0 (2015-10-30)
v1.3.1 (2015-10-07)
Merged pull requests:
v1.3.0 (2015-10-07)
v1.2.1 (2015-08-31)
v1.2.0 (2015-08-31)
v1.1.2 (2015-08-28)
v1.1.1 (2015-08-28)
v1.1.0 (2015-08-27)
v1.0.0 (2015-08-27)
* This Change Log was automatically generated by github_changelog_generator
Collaborator Number Metric
1.6.4 passed this metric
Contributing File Metric
1.6.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
1.6.4 passed this metric
License Metric
1.6.4 passed this metric
No Binaries Metric
1.6.4 passed this metric
Publish Metric
1.6.4 passed this metric
Supported Platforms Metric
1.6.4 passed this metric
Testing File Metric
1.6.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
1.6.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
1.6.4 passed this metric
1.6.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
1.6.4 passed this metric
License Metric
1.6.4 passed this metric
No Binaries Metric
1.6.4 passed this metric
Publish Metric
1.6.4 passed this metric
Supported Platforms Metric
1.6.4 passed this metric
Testing File Metric
1.6.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
1.6.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
1.6.4 passed this metric
1.6.4 passed this metric
No Binaries Metric
1.6.4 passed this metric
Publish Metric
1.6.4 passed this metric
Supported Platforms Metric
1.6.4 passed this metric
Testing File Metric
1.6.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
1.6.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
1.6.4 passed this metric
1.6.4 passed this metric
Supported Platforms Metric
1.6.4 passed this metric
Testing File Metric
1.6.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
1.6.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
1.6.4 passed this metric
1.6.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
1.6.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
1.6.4 failed this metric