-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathVagrantfile
33 lines (26 loc) · 821 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "puppetlabs/centos-6.6-64-puppet"
config.vm.box_version = '= 1.0.2'
config.vm.hostname = 'jenkins.example.com'
config.vm.provision 'puppet' do |puppet|
puppet.environment = 'puppet'
puppet.environment_path = '.'
end
script = <<-SCRIPT
ip=`facter ipaddress`
echo Your Jenkins instance is ready.
echo
echo The interface can be reached at the following URI:
echo * http://$ip:8080
SCRIPT
config.vm.provision 'shell',
inline: script
config.vm.provider "vmware_fusion" do |v|
v.vmx["memsize"] = "1024"
v.vmx["numvcpus"] = "2"
end
end