Skip to content

IriW/jenkins-auto-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jenkins-auto-setup

Create VM with Vagrant and configure Jenkins with Ansible

Prerequisites:

  • Vagrant
  • Ansible: sudo apt update && sudo apt install -y ansible
  • Ansible jenkins role from geerlingguy installed: ansible-galaxy install geerlingguy.jenkins. Confirm ansible-galaxy list. I have it called ansible-role-jenkins. If your local role name differs, make sure you define it accordingly in jenkins.yaml.

How does it work:

Initiate provisioning running vagrant up.

  1. If Vagrantfile specifies provisioning with bash script (here, the default one), the script will run and install&configure Jenkins.

  2. If Vagrantfile has defined provisioning ansible, once VM is provisioned, ansible role for Jenkins installation is triggered.

When Jenkins configuration is completed, the initial admin passwordpassword output will be displayed.

About

Create VM with Vagrant and configure Jenkins with Ansible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages