cookbook 'jenkins-repo', '~> 0.1.1'
jenkins-repo (2) Versions 0.1.1 Follow1
Configures Jenkins Vendor-Specific Repository
cookbook 'jenkins-repo', '~> 0.1.1', :supermarket
knife supermarket install jenkins-repo
knife supermarket download jenkins-repo
jenkins-repo Cookbook
Configures Jenkins Vendor-Specific Repositories.
This cookbook configures Jenkins repositories per https://jenkins-ci.org for apt
and yum.
Requirements
- Chef 11 or higher
- Ruby 1.9 or higher (preferably from the Chef full-stack installer)
- Network accessible package repositories
Attributes
jenkins-repo::default
The default cookbook manages repository settings for the Jenkins Long-Term
Support (LTS) release line and Jenkins newer weekly releases. Jenkins LTS
packages are considered part of the "jenkins-stable" repository and Jenkins
weekly releases are considered part of the "jenkins-mainline" repository.
"jenkins-stable" is managed by default.
-
['jenkins-repo']['jenkins-stable']['managed']
- Type:: Boolean
- Description: Does this cookbook manage the install of the jenkins-stable repo?
-
Default:
true
-
['jenkins-repo']['jenkins-mainline']['managed']
- Type: Boolean
- Description: Does this cookbook manage the install of the jenkins-mainline repo?
-
Default::
false
jenkins-repo::_apt
The apt recipe is for managing the Jenkins apt repostories. Any attribute
supported by the apt cookbook
is supported by this cookbook and can be used to override attributes in this
cookbook.
-
['jenkins-repo']['jenkins-stable']['apt']['uri']
- Type: String
- Description: URI of Jenkins Stable Repo
-
Default:
http://pkg.jenkins-ci.org/debian-stable
-
['jenkins-repo']['jenkins-stable']['apt']['components']
- Type: Array
- Description: Jenkins Stable Repo Package Groupings
-
Default:
['binary/']
-
['jenkins-repo']['jenkins-stable']['apt']['key']
- Type: String
- Description: Cookbook File for Jenkins Stable Repo Signing Key`
-
Default:
jenkins-ci.org.key
- `['jenkins-repo']['jenkins-stable']['apt']['deb-src']
- Type: Boolean
- Description: Whether or not to include the jenkins-stable source repo?
-
Default:
false
-
['jenkins-repo']['jenkins-mainline']['apt']['uri']
- Type: String
- Description: URI of Jenkins Mainline Repo
-
Default:
http://pkg.jenkins-ci.org/debian
-
['jenkins-repo']['jenkins-mainline']['apt']['components']
- Type: Array
- Description: Jenkins Mainline Repo Package Groupings
-
Default:
['binary/']
-
['jenkins-repo']['jenkins-mainline']['apt']['key']
- Type: String
- Description: Cookbook File for Jenkins Mainline Repo Signing Key
-
Default:
jenkins-ci.org.key
-
['jenkins-repo']['jenkins-mainline']['apt']['deb-src']
- Type: Boolean
- Description: Whether or not to include the jenkins-mainline source repo?
-
Default:
false
jenkins-repo::_yum
The yum recipe is for managing the Jenkins yum repostories. Any attribute
supported by the yum cookbook
is supported by this cookbook and can be used to override attributes in this
cookbook.
-
['jenkins-repo']['jenkins-stable']['yum']['repositoryid']
- Type: String
- Description: Unique Name for Jenkins Stable Repo
-
Default:
jenkins-stable
-
['jenkins-repo']['jenkins-stable']['yum']['description']
- Type: String
- Description: Description of Jenkins Stable Repo
-
Default:
Jenkins Stable
-
['jenkins-repo']['jenkins-stable']['yum']['baseurl']
- Type: String
- Description: URL of Jenkins Stable Repo
-
Default:
http://pkg.jenkins-ci.org/redhat-stable
-
['jenkins-repo']['jenkins-stable']['yum']['gpgcheck']
- Type: Boolean
- Description: Whether or not Jenkins Stable Repo should perform GPG check of packages?
-
Default:
true
-
['jenkins-repo']['jenkins-stable']['yum']['gpgkey']
- Type: String
- Description: GPG Key Used for Verifying Jenkins Stable Repo Packages
-
Default:
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Jenkins
-
['jenkins-repo']['jenkins-stable']['yum']['sslverify']
- Type: Boolean
- Description: Whether or not yum will verify the Jenkins Stable Repo SSL host?
-
Default:
false
-
['jenkins-repo']['jenkins-stable']['yum']['enabled']
- Type: Boolean
- Description: Whether or not the Jenkins Stable Repo is enabled?
-
Default:
true
-
['jenkins-repo']['jenkins-mainline']['yum']['repositoryid']
- Type: String
- Description: Unique Name for Jenkins Mainline Repo
-
Default:
jenkins-mainline
-
['jenkins-repo']['jenkins-mainline']['yum']['description']
- Type: String
- Description: Description for Jenkins Mainline Repo
-
Default:
Jenkins Mainline
-
['jenkins-repo']['jenkins-mainline']['yum']['baseurl']
- Type: String
- Description: URL of Jenkins Mainline Repo
-
Default:
http://pkg.jenkins-ci.org/redhat
-
['jenkins-repo']['jenkins-mainline']['yum']['gpgcheck']
- Type: Boolean
- Description: Whether or not Jenkins Mainline Repo should perform GPG check of packages?
-
Default:
true
-
['jenkins-repo']['jenkins-mainline']['yum']['gpgkey']
- Type: String
- Description: GPG Key Used for Verifying Jenkins Mainline Repo Packages
-
Default:
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Jenkins
-
['jenkins-repo']['jenkins-mainline']['yum']['sslverify']
- Type: Boolean
- Description: Whether or not yum will verify the Jenkins Mainline Repo SSL host?
-
Default:
false
-
['jenkins-repo']['jenkins-mainline']['yum']['enabled']
- Type: Boolean
- Description: Whether or not the Jenkins Mainline Repo is enabled?
-
Default:
true
Usage
jenkins-repo::default
Just include jenkins-repo
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[jenkins-repo]" ] }
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
Development Environment
This repository contains a Vagrantfile which can be used to spin up a
fully configured development environment in Vagrant.
Vagrant requires the following:
- VirtualBox
- Vagrant
The Vagrant environment for this repository is based on:
- st-isidore-de-seville/trusty64-rvm-docker
The Vagrant environment will initialize itself to:
- install required Ruby gems
- run integration testing via kitchen-docker when calling kitchen
The Vagrant environment can be spun up by performing the following commands:
vagrant up
vagrant ssh
cd /vagrant
Authors
- Author:: St. Isidore de Seville (st.isidore.de.seville@gmail.com)
License
The MIT License (MIT) Copyright (c) 2015 St. Isidore de Seville (st.isidore.de.seville@gmail.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Dependent cookbooks
apt ~> 2.8 |
yum ~> 3.6 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
jenkins-repo CHANGELOG
This file is used to list changes made in each version of the jenkins-repo
cookbook.
0.1.1
- St. Isidore de Seville (st.isidore.de.seville@gmail.com)
- pin dependencies of apt & yum cookbook
0.1.0
- St. Isidore de Seville (st.isidore.de.seville@gmail.com)
- Initial release of jenkins-repo
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 passed this metric
No Binaries Metric
0.1.1 failed this metric
Failure: Cookbook should not contain binaries. Found:
jenkins-repo/files/jenkins-ci.org.key
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 passed this metric
No Binaries Metric
0.1.1 failed this metric
Failure: Cookbook should not contain binaries. Found:
jenkins-repo/files/jenkins-ci.org.key
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 failed this metric
Failure: Cookbook should not contain binaries. Found:
jenkins-repo/files/jenkins-ci.org.key
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 include a tag that matches this cookbook version number