Skip to content

Instantly share code, notes, and snippets.

@lamanotrama
Created November 2, 2013 14:44
Show Gist options
  • Save lamanotrama/7279603 to your computer and use it in GitHub Desktop.
Save lamanotrama/7279603 to your computer and use it in GitHub Desktop.
jenkins on CentOS6
# -*- mode: ruby -*-
# vi: set ft=ruby :
# refs: https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "CentOS6.4-x86-64"
config.vm.box_url = "http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-x86_64-v20130427.box"
config.vm.network :forwarded_port, guest: 8080, host: 18080
config.vm.provision :shell do |shell|
shell.inline = <<-EOS
wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
rpm --import http://pkg.jenkins-ci.org/redhat-stable/jenkins-ci.org.key
yum -y install jenkins java-1.6.0-openjdk
service jenkins start
service iptables stop
chkconfig jenkins on
chkconfig iptables off
EOS
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment