cookbook 'jenkins-grid', '= 0.1.0'
jenkins-grid (10) Versions 0.1.0 Follow0
Installs/Configures jenkins-grid
cookbook 'jenkins-grid', '= 0.1.0', :supermarket
knife supermarket install jenkins-grid
knife supermarket download jenkins-grid
jenkins-grid Cookbook
This cookbook sets up a Jenkins service.
Contents
Requirements
platforms
- none.
packages
- none.
Attributes
Key | Type | Description, example | Default |
---|---|---|---|
['jenkins-grid']['docker-compose']['app_dir'] |
String | "#{node['docker-grid']['compose']['app_dir']}/jenkins" |
|
['jenkins-grid']['docker-compose']['jenkins_home']['path'] |
String | Path string or nil (unset). | '/var/lib/jenkins_home' |
['jenkins-grid']['docker-compose']['jenkins_home']['owner'] |
String, Int | Owner user name or uid. | 1000 |
['jenkins-grid']['docker-compose']['config'] |
Hash |
docker-compose.yml configurations. |
See attributes/default.rb
|
Usage
Recipes
jenkins-grid::default
This recipe does nothing.
jenkins-grid::docker-compose
This recipe generates a docker-compose.yml for the Jenkins CI service.
Role Examples
roles/jenkins.rb
name 'jenkins' description 'Jenkins' run_list( 'role[docker]', 'recipe[jenkins-grid::docker-compose]', ) #env_run_lists() #default_attributes() override_attributes( 'jenkins-grid' => { 'docker-compose' => { 'config' => { # Version 2 docker-compose format 'version' => '2', 'services' => { 'jenkins' => { 'restart' => 'always', 'image' => 'jenkins:2.19.4', 'ports' => [ '8080:8080', '50000:50000', ], #'environment' => { #}, #'volumes' => [ # # set automatically, if the node['jenkins-grid']['docker-compose']['jenkins_home']['path'] is not nil. # "#{node['jenkins-grid']['docker-compose']['jenkins_home']['path']}:/var/jenkins_home", #], }, }, }, }, }, )
License and Authors
- Author:: whitestar at osdn.jp
Copyright 2016, whitestar 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
docker-grid >= 0.2.7 |
ssl_cert >= 0.3.3 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
jenkins-grid CHANGELOG
0.1.0
- Initial release of jenkins-grid
Collaborator Number Metric
0.1.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Foodcritic Metric
0.1.0 passed this metric
License Metric
0.1.0 passed this metric
0.1.0 failed this metric
0.1.0 passed this metric
License Metric
0.1.0 passed this metric
0.1.0 passed this metric