Skip to content

A Packer script to create an AWS Ubuntu AMI with Ansible to provision Jenkins

Notifications You must be signed in to change notification settings

brodster2/packer-jenkins-ami

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins server AMI builder

This repo is a template to build an AWS Ubuntu AMI using Packer, with Ansible used to provision Jenkins.

Requirements

  • Ansible and Packer both need to be installed on your local machine.
  • An AWS account with an Access Key for your user. Instructions here.
  • A way to authenticate with AWS when running the Packer script, see here. I prefer to use the shared credentials file method.

Usage

To create the AMI:

  1. Install the required Ansible-Galaxy roles:

    ansible-galaxy install -r requirements.yml

  2. Run the Packer script:

    packer build jenkins.json

Credits

Big thanks to Jeff Geerling for providing lots of awesome Ansible scripts. I used his Jenkins role for this project.

About

A Packer script to create an AWS Ubuntu AMI with Ansible to provision Jenkins

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published