cookbook 'yum-corporate', '~> 3.0.1'
yum-corporate (2) Versions 3.0.1 Follow13
Configures repo file, via attributes, for internal corporate yum mirror.
cookbook 'yum-corporate', '~> 3.0.1', :supermarket
knife supermarket install yum-corporate
knife supermarket download yum-corporate
yum-corporate Cookbook
Configures repo file, via attributes, for internal corporate yum mirror.
This is a simple cookbook, where you may set a few attributes to point
servers at a local yum mirror. Much of the credit goes to @BryanWB
for the idea, and a good portion of the original implementation in
the soon to be deprecated yumrepo cookbook.
Requirements
This cookbook depends on the yum_repository
provider from the yum
cookbook.
You need to have a RHEL family platform, and yum, to use the cookbook.
cookbooks
-
yum
- Opscode maintained v3.0.x cookbook
Attributes
The following are overridable attributes, in the yum['corporate']
namespace.
yum-corporate::default
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['yum']['corporate']['name']</tt></td>
<td>String</td>
<td>Short name for the repo. The first part of the domain attribute will be used, if not set.
given example.com, value would be:</td>
<td><tt>example</tt></td>
</tr>
<tr>
<td><tt>['yum']['corporate']['baseurl']</tt></td>
<td>String</td>
<td>URL where repodata folder is located. Your domain, platform_family, and major platform_version will be used as a guess, if not set.
Given domain example.com; platform_family rhel; and platform_version 6.4 the default would be:</td>
<td><tt>http://yum.example.com/yum/rhel/6/$basearch</tt></td>
</tr>
<tr>
<td><tt>['yum']['corporate']['gpgkey']</tt></td>
<td>String</td>
<td>URL where GPG key is located. The repository provider in yum should authorize the key by setting this attribute.</td>
<td><tt>nil (off)</tt></td>
</tr>
<tr>
<td><tt>['yum']['corporate']['gpgcheck']</tt></td>
<td>true/false</td>
<td>Whether, or not, to validate signed packages from this repository against the GPG key specified.
Default value depends on whether gpgkey has been set, or not.</td>
<td><tt>false, if ['yum']['corporate']['gpgkey'] not set.
true, if ['yum']['corporate']['gpgkey'] is set.</tt></td>
</tr>
</table>
Usage
yum-corporate::default
Optionally, set attributes in a role, and
include yum-corporate
in your node's run_list
:
default_attributes(
:yum => {
:corporate => {
:gpgkey => {
"http://yum.example.com/yum/RPM-GPG-KEY-example"
}
}
}
)
{ "name":"my_node", "run_list": [ "recipe[yum-corporate]" ] }
yum-corporate::undo
Removes repository file based on ['yum']['corporate']['name']
.
This recipe does the opposite action of yum-corporate::default.
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Author:: Eric G. Wolfe
Copyright:: 2010-2011
Contributor:: Bryan W. Berry
Copyright:: 2012
Author:: Tippr, Inc.
Copyright:: 2010
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Dependent cookbooks
yum >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
3.0.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
3.0.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
3.0.1 failed this metric
FC064: Ensure issues_url is set in metadata: yum-corporate/metadata.rb:1
FC065: Ensure source_url is set in metadata: yum-corporate/metadata.rb:1
FC066: Ensure chef_version is set in metadata: yum-corporate/metadata.rb:1
FC069: Ensure standardized license defined in metadata: yum-corporate/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
3.0.1 passed this metric
Testing File Metric
3.0.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
3.0.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
3.0.1 failed this metric
3.0.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
3.0.1 failed this metric
FC064: Ensure issues_url is set in metadata: yum-corporate/metadata.rb:1
FC065: Ensure source_url is set in metadata: yum-corporate/metadata.rb:1
FC066: Ensure chef_version is set in metadata: yum-corporate/metadata.rb:1
FC069: Ensure standardized license defined in metadata: yum-corporate/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
3.0.1 passed this metric
Testing File Metric
3.0.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
3.0.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
3.0.1 failed this metric
FC065: Ensure source_url is set in metadata: yum-corporate/metadata.rb:1
FC066: Ensure chef_version is set in metadata: yum-corporate/metadata.rb:1
FC069: Ensure standardized license defined in metadata: yum-corporate/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
3.0.1 passed this metric
Testing File Metric
3.0.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
3.0.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
3.0.1 failed this metric
3.0.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