Skip to content

Get a jenkins build server quickly up and running at AWS

Notifications You must be signed in to change notification settings

rgoodwin/jenkins-aws-quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This terraform and ansible code gets a jenkins master and slave up and running quickly. It's automatic but uses basic configuration and jenkins security.

The jenkins master and slave are run via docker containers. See: master container and slave container for info.

Generally, this is meant to serve as an example for customization.

Quick Start

Launch the infrastructure using terraform (requires an exiting keypair configured at AWS)

cd provision-terraform
terraform apply -var "jenkins_host_keypair=<name of ssh keypair you want to use>"

Run ansible playbook to provision

cd ..
ansible-playbook jenkins-jumpstart-playbook.yaml -i ec2.py -u ec2-user --limit tag_Name_jenkins_master

When this is all done you can login to http://:8080 using admin/admin

Details

This will provision one server in your default VPC in the AWS region you have set as the default. It assumes you have terraform setup and your aws credentials setup.

It then runs a jenkins master and a slave (which is tagged to build docker containers). You can launch more slaves on the same or other hosts to quickly setup a jenkins build cluster.

The ansible playbook should run. But, will required whatever ssh key you passed to terraform, as well as it assumes you have the ec2.py dynamic inventory configured for ansible.

Development

The included Vagrant file can be used for testing ansible provisioning of the host and containers locally

About

Get a jenkins build server quickly up and running at AWS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages