cookbook 'jenkins_swarm', '~> 1.1.8'
jenkins_swarm (2) Versions 1.1.8 Follow1
Installs/Configures jenkins swarm on a node
cookbook 'jenkins_swarm', '~> 1.1.8', :supermarket
knife supermarket install jenkins_swarm
knife supermarket download jenkins_swarm
jenkins_swarm
Setup
- Create an encryption key to use with data bags
openssl rand -base64 512 | tr -d '\r\n' > /path/to/encrypted_data_bag_secret
- Create encrypted "jenkins" data bag with a "keys" item
knife data bag create jenkins keys --secret-file /path/to/encrypted_data_bag_secret
- Add keys for the jenkins service user
- Copy the contents of the
/path/to/encrypted_data_bag_secret
file to/etc/chef/encrypted_data_bag_secret
on the node after bootstrap. This is needed in order to join the node to jenkins without actually providing a password.
Test Kitchen
- Create an SSH key if needed for the jenkins user and add it to the encrypted data bag.
ssh-keygen -t rsa -b 4096 -C 'fake_deploy_key' sed ':a;N;$!ba;s/\n/\\n/g' /path/to/fake_deploy_key <knife command to add to data bag here>
- Copy the conetents of the
/path/to/encrypted_data_bag_secret
file intotest/integration/default/encrypted_data_bag_secret
- Get the encrypted contents of the "jenkins" data bag and place them in
test/integragration/default/data_bags/jenkins/keys.json
knife data bag show jenkins keys -Fj > test/integragration/default/data_bags/jenkins/keys.json
- Run
kitchen converge
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
1.1.8 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.1.8 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
1.1.8 passed this metric
No Binaries Metric
1.1.8 failed this metric
Failure: Cookbook should not contain binaries. Found:
jenkins_swarm/files/java-1.8.0-openjdk-1.8.0.131-1.b11.redhat.windows.x86_64.msi
Testing File Metric
1.1.8 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
1.1.8 passed this metric
1.1.8 failed this metric
1.1.8 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
1.1.8 passed this metric
No Binaries Metric
1.1.8 failed this metric
Failure: Cookbook should not contain binaries. Found:
jenkins_swarm/files/java-1.8.0-openjdk-1.8.0.131-1.b11.redhat.windows.x86_64.msi
Testing File Metric
1.1.8 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
1.1.8 passed this metric
1.1.8 passed this metric
1.1.8 failed this metric
Failure: Cookbook should not contain binaries. Found:
jenkins_swarm/files/java-1.8.0-openjdk-1.8.0.131-1.b11.redhat.windows.x86_64.msi
Testing File Metric
1.1.8 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
1.1.8 passed this metric
1.1.8 failed this metric
1.1.8 passed this metric