Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
| # Inside main monitrc | |
| # Check that services are running and also define start and stop commands for them. | |
| # You will need one of these for each container | |
| # as well as working out a restarting and/or red | |
| eploying workflow. | |
| check process <container-name> with pidfile /var/run/monit/<container-name>.pid | |
| start = "/path/to/pid/script start <container-name> '<docker-arguments>'" | |
| stop = "/path/to/pid/script stop <container-name>" |
Simple collection of Groovy scripts to help me maintain some Jenkins systems.
See also https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
I've been using a lot of Ansible lately and while almost everything has been great, finding a clean way to implement ansible-vault wasn't immediately apparent.
What I decided on was the following: put your secret information into a vars file, reference that vars file from your task, and encrypt the whole vars file using ansible-vault encrypt.
Let's use an example: You're writing an Ansible role and want to encrypt the spoiler for the movie Aliens.