This repo is based on bertvv/ansible-skeleton
On the management node, make sure you have installed recent versions of:
- VirtualBox
- Vagrant
- Git and for Windows hosts also Git Bash. If you install Git with default settings (i.e. always click "Next" in the installer), you should be fine.
- Ansible (only on Mac/Linux)
You can either clone this project or use the provided initialization script.
When cloning, choose another name for the target directory!
$ git clone git@github.com:OmniaGM/ansible-jenkins-vagrant.git my-jenkins
On Windows, it is important to keep line endings in the Linux format:
$ git clone --config core.autocrlf=input https://github.com/OmniaGM/ansible-jenkins-vagrant.git my-jenkins
-
modify jenkins_new_user and jenkins_new_user_pass you need to use it for jenkins in
group_vars/all.yml
-
add more jobs for your jenkins in
pipeline/files/jobs
-
jenkins-provision
job, will re-provission jenkins again with every push
If you which to update jenkins version or add more plugins then you can modify ansible/roles/jenkins/vars/main.yml
to select your favourite jenkins version or your plugin
vagrant up
./scripts/run-playbook-locally.sh
Then go to https:127.0.0.1:8080
with your jenkins new user credentials