cookbook 'yum-webtatic', '~> 0.7.0'
yum-webtatic (8) Versions 0.7.0 Follow1
Installs/Configures yum-webtatic
cookbook 'yum-webtatic', '~> 0.7.0', :supermarket
knife supermarket install yum-webtatic
knife supermarket download yum-webtatic
yum-webtatic Cookbook
The yum-webtatic cookbook takes over management of the default
repositoryids shipped with webtatic-release. It allows attribute
manipulation of webtatic
, webtatic-debuginfo
, webtatic-source
,
webtatic-archive
, webtatic-archive-debuginfo
, webtatic-archive-source
webtatic-testing
, webtatic-testing-debuginfo
, and webtatic-testing-source
.
Requirements
- Chef 11 or higher
- yum cookbook version 3.0.0 or higher
Attributes
The following attributes are set by default depending on EL version
default['yum-webtatic']['use_scheme'] = 'https'
default['yum']['webtatic']['repositoryid'] = depends on EL version default['yum']['webtatic']['description'] = depends on EL version default['yum']['webtatic']['mirrorlist'] = depends on EL version default['yum']['webtatic']['gpgkey'] = depends on EL version default['yum']['webtatic']['failovermethod'] = nil - depends whether yum fastest mirrors plugin is installed default['yum']['webtatic']['gpgcheck'] = true default['yum']['webtatic']['enabled'] = true default['yum']['webtatic']['managed'] = true
default['yum']['webtatic-debuginfo']['repositoryid'] = depends on EL version default['yum']['webtatic-debuginfo']['description'] = depends on EL version default['yum']['webtatic-debuginfo']['mirrorlist'] = depends on EL version default['yum']['webtatic-debuginfo']['gpgkey'] = depends on EL version default['yum']['webtatic-debuginfo']['failovermethod'] = nil - depends whether yum fastest mirrors plugin is installeddefault['yum']['webtatic-debuginfo']['gpgcheck'] = true default['yum']['webtatic-debuginfo']['enabled'] = false default['yum']['webtatic-debuginfo']['managed'] = false
default['yum']['webtatic-source']['repositoryid'] = depends on EL version default['yum']['webtatic-source']['description'] = depends on EL version default['yum']['webtatic-source']['mirrorlist'] = depends on EL version default['yum']['webtatic-source']['gpgkey'] = depends on EL version default['yum']['webtatic-source']['failovermethod'] = nil - depends whether yum fastest mirrors plugin is installeddefault['yum']['webtatic-source']['gpgcheck'] = true default['yum']['webtatic-source']['enabled'] = false default['yum']['webtatic-source']['managed'] = false
default['yum']['webtatic-archive']['repositoryid'] = depends on EL version default['yum']['webtatic-archive']['description'] = depends on EL version default['yum']['webtatic-archive']['mirrorlist'] = depends on EL version default['yum']['webtatic-archive']['gpgkey'] = depends on EL version default['yum']['webtatic-archive']['failovermethod'] = nil - depends whether yum fastest mirrors plugin is installed default['yum']['webtatic-archive']['gpgcheck'] = true default['yum']['webtatic-archive']['enabled'] = false default['yum']['webtatic-archive']['managed'] = false
default['yum']['webtatic-archive-debuginfo']['repositoryid'] = depends on EL version default['yum']['webtatic-archive-debuginfo']['description'] = depends on EL version default['yum']['webtatic-archive-debuginfo']['mirrorlist'] = depends on EL version default['yum']['webtatic-archive-debuginfo']['gpgkey'] = depends on EL version default['yum']['webtatic-archive-debuginfo']['failovermethod'] = nil - depends whether yum fastest mirrors plugin is installeddefault['yum']['webtatic-debuginfo']['gpgcheck'] = true default['yum']['webtatic-archive-debuginfo']['enabled'] = false default['yum']['webtatic-archive-debuginfo']['managed'] = false
default['yum']['webtatic-archive-source']['repositoryid'] = depends on EL version default['yum']['webtatic-archive-source']['description'] = depends on EL version default['yum']['webtatic-archive-source']['mirrorlist'] = depends on EL version default['yum']['webtatic-archive-source']['gpgkey'] = depends on EL version default['yum']['webtatic-archive-source']['failovermethod'] = nil - depends whether yum fastest mirrors plugin is installeddefault['yum']['webtatic-source']['gpgcheck'] = true default['yum']['webtatic-archive-source']['enabled'] = false default['yum']['webtatic-archive-source']['managed'] = false
default['yum']['webtatic-testing']['repositoryid'] = depends on EL version default['yum']['webtatic-testing']['description'] = depends on EL version default['yum']['webtatic-testing']['mirrorlist'] = depends on EL version default['yum']['webtatic-testing']['gpgkey'] = depends on EL version default['yum']['webtatic-testing']['failovermethod'] = nil - depends whether yum fastest mirrors plugin is installeddefault['yum']['webtatic-testing']['gpgcheck'] = true default['yum']['webtatic-testing']['enabled'] = false default['yum']['webtatic-testing']['managed'] = false
default['yum']['webtatic-testing-debuginfo']['repositoryid'] = depends on EL version default['yum']['webtatic-testing-debuginfo']['description'] = depends on EL version default['yum']['webtatic-testing-debuginfo']['mirrorlist'] = depends on EL version default['yum']['webtatic-testing-debuginfo']['gpgkey'] = depends on EL version default['yum']['webtatic-testing-debuginfo']['failovermethod'] = nil - depends whether yum fastest mirrors plugin is installed default['yum']['webtatic-testing-debuginfo']['gpgcheck'] = true default['yum']['webtatic-testing-debuginfo']['enabled'] = false default['yum']['webtatic-testing-debuginfo']['managed'] = false
default['yum']['webtatic-testing-source']['repositoryid'] = depends on EL version default['yum']['webtatic-testing-source']['description'] = depends on EL version default['yum']['webtatic-testing-source']['mirrorlist'] = depends on EL version default['yum']['webtatic-testing-source']['gpgkey'] = depends on EL version default['yum']['webtatic-testing-source']['failovermethod'] = nil - depends whether yum fastest mirrors plugin is installed default['yum']['webtatic-testing-source']['gpgcheck'] = true default['yum']['webtatic-testing-source']['enabled'] = false default['yum']['webtatic-testing-source']['managed'] = false
Recipes
- default - Walks through node attributes and feeds a yum_resource parameters. The following is an example a resource generated by the recipe during compilation.
yum_repository 'webtatic' do mirrorlist 'https://mirror.webtatic.com/yum/el7/$basearch/mirrorlist_https' description 'Webtatic Repository EL7 - $basearch' enabled true gpgcheck true gpgkey 'https://mirror.webtatic.com/yum/RPM-GPG-KEY-webtatic-el7' end
Usage Example
To disable the webtatic repository through a Role or Environment definition
default_attributes(
:yum => {
:webtatic => {
:enabled => {
false
}
}
}
)
Uncommonly used repositoryids are not managed by default. This is
speeds up integration testing pipelines by avoiding yum-cache builds
that nobody cares about. To enable the webtatic-testing repository with a
wrapper cookbook, place the following in a recipe:
node.default['yum']['webtatic-testing']['enabled'] = true
node.default['yum']['webtatic-testing']['managed'] = true
include_recipe 'yum-webtatic'
More Examples
Point the webtatic repositories at an internally hosted server.
node.default['yum']['webtatic']['enabled'] = true
node.default['yum']['webtatic']['baseurl'] = 'https://internal.example.com/webtatic/el6/x86_64'
node.default['yum']['webtatic']['sslverify'] = false
include_recipe 'yum-webtatic'
License & Authors
- Author:: Andy Thompson (andy@webtatic.com)
Copyright:: 2014 Andy Thompson based on yum-epel, Copyright:: 2011-2013 Opscode, Inc. 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.
v0.7.0
- Switch el6 to renamed user id gpg key
v0.6.0
- Update to require yum-epel for all repository releases
v0.5.0
- Use http on EL5 versions
v0.4.0
- Use https on all EL versions
- Disable sslverify on EL5 as it's ciphers are too out of date
v0.3.0
- Switch to failover = priority and use mirrorlist rewrite
v0.2.0
- Remove mirrorlist default if baseurl has been supplied
- Set RHEL/CentOS/etc 7 to use https urls
- Add test-kitchen serverspec and bats test
- Add Chefspec spec
v0.1.1
- Switch from not_if to conditional resource declaration for consistency
- Include yum-epel in EL7 only if at least one webtatic repository is managed
v0.1.0
- Added recipe for EL5/EL6/EL7 repositories
Collaborator Number Metric
0.7.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.7.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.7.0 passed this metric
No Binaries Metric
0.7.0 passed this metric
Testing File Metric
0.7.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.7.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.7.0 failed this metric
0.7.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.7.0 passed this metric
No Binaries Metric
0.7.0 passed this metric
Testing File Metric
0.7.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.7.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.7.0 passed this metric
0.7.0 passed this metric
Testing File Metric
0.7.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.7.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.7.0 failed this metric
0.7.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