Skip to content

Instantly share code, notes, and snippets.

@visualdensity
Last active August 1, 2016 07:48
Show Gist options
  • Save visualdensity/5778661 to your computer and use it in GitHub Desktop.
Save visualdensity/5778661 to your computer and use it in GitHub Desktop.
"Resources" : {
"JenkinsInstance" : {
"Type" : "AWS::EC2::Instance",
"Properties" : {
"AvailabilityZone" : "us-west-1b",
"SecurityGroups" : [ "qa" ],
"KeyName" : "pav_prod",
"ImageId" : "ami-d383af96",
"UserData" : { "Fn::Base64" : {
"Fn::Join" : [
"",
[
"#!/bin/bash -v\n",
"locale-gen en_AU.UTF-8\n",
"wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -\n",
"echo 'deb http://pkg.jenkins-ci.org/debian binary/' > /etc/apt/sources.list.d/jenkis.list \n",
"apt-get update\n",
"apt-get install -q -y ntp htop ntpdate\n",
"apt-get install -q -y jenkins\n",
"echo 'Australia/Melbourne' > /etc/timezone\n",
"dpkg-reconfigure -f noninteractive tzdata\n",
"apt-get -q -y install python-setuptools\n",
"easy_install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz\n",
"cd /var/lib/jenkins/plugins\n",
"wget http://updates.jenkins-ci.org/latest/mercurial.hpi\n",
"wget http://updates.jenkins-ci.org/latest/dashboard-view.hpi\n",
"wget http://updates.jenkins-ci.org/latest/build-pipeline-plugin.hpi\n",
"wget http://updates.jenkins-ci.org/latest/token-macro.hpi\n",
"wget http://updates.jenkins-ci.org/latest/multiple-scms.hpi\n",
"wget http://updates.jenkins-ci.org/latest/git-client.hpi\n",
"wget http://updates.jenkins-ci.org/latest/parameterized-trigger.hpi\n",
"wget http://updates.jenkins-ci.org/latest/git.hpi\n",
"/etc/init.d/jenkins start\n"
]
]
}
}
}
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment