cookbook 'blp-gemrc', '~> 3.0.0'
blp-gemrc (6) Versions 3.0.0 Follow1
Configures gemrc configuration file for RubyGems.
cookbook 'blp-gemrc', '~> 3.0.0', :supermarket
knife supermarket install blp-gemrc
knife supermarket download blp-gemrc
blp-gemrc cookbook
The blp-gemrc cookbook is a library cookbook that provides a custom
resource for configuring the gemrc file for
a RubyGems environment.
Platforms
The following platforms are tested automatically
using Test Kitchen, in Docker, with
the default suite of integration tests:
- Ubuntu 12.04/14.04/16.04
- CentOS (RHEL) 6/7
Additionally, the platforms below are also known to work:
- AIX 7.1
- Solaris 5.11
- Windows 2008r2/2012r2
Recipes
The default recipe configures the embedded gem configuration of
the Chef Client. This allows for changing the gem sources that would
get pulled from during a normal convergence.
Attributes
Attribute Name | Type | Default Value | Description |
---|---|---|---|
node['gemrc']['config'] |
Hash | gem: '--no-ri --no-rdoc' |
Sets the options for the default recipe gemrc configuration. |
node['gemrc']['sensitive'] |
Boolean | false |
Tells the default recipe whether the gemrc is sensitive (should not be output to Chef log) |
Basic Usage
A common use case for this cookbook is to configure the Chef Client's gem environment to an internal mirror if behind the veil of the corporate firewall.
Here is an example of how to use an internal Artifactory instance to mirror the RubyGems.org repository.
node.default['gemrc']['path'] = Gem::ConfigFile::SYSTEM_WIDE_CONFIG_FILE
node.default['gemrc']['reload'] = true
node.default['gemrc']['config']['sources'] = ['http://artifactory.corporate.com/artifactory/api/gems/ruby-gems/']
include_recipe 'gemrc::default'
Dependent cookbooks
chef-sugar >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Change Log
All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning.
[3.0.0]
- implement workaround mentioned in - https://github.com/chef/chef/issues/10492
[2.0.0]
- Fix owner/group/mode issue on Windows. This release skips several version numbers to avoid confusion with other "gemrc" cookbooks out there.
1.0.2
- Adds Ubuntu 18.04 support to testing matrix.
1.0.1
- Removes unused attributes from the readme.
1.0.0
- Rename and move cookbook under bloomberg-cookbooks organization.
- Update cookbook to use Chef 12 resource DSL.
- Updates integration tests to use InSpec and Policyfiles.
Collaborator Number Metric
3.0.0 passed this metric
Contributing File Metric
3.0.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
3.0.0 passed this metric
No Binaries Metric
3.0.0 passed this metric
Testing File Metric
3.0.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
3.0.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
3.0.0 passed this metric
3.0.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
3.0.0 passed this metric
No Binaries Metric
3.0.0 passed this metric
Testing File Metric
3.0.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
3.0.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
3.0.0 passed this metric
3.0.0 passed this metric
Testing File Metric
3.0.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
3.0.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
3.0.0 failed this metric
3.0.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