-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
43 lines (40 loc) · 1.35 KB
/
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
34
35
36
37
38
39
40
41
42
43
IMAGE = "ashleykleynhans/jammy64"
Vagrant.configure("2") do |config|
config.vm.box = IMAGE
config.vm.box_check_update = false
config.ssh.insert_key = false
# Provision Jenkins
config.vm.define "jenkins" do |jenkins|
jenkins.vm.provider "virtualbox" do |vb|
vb.name = "jenkins"
vb.memory = 2048
vb.cpus = 2
end
jenkins.vm.hostname = "jenkins"
jenkins.vm.network :private_network, ip: "10.10.10.10"
jenkins.vm.provision "ansible" do |ansible|
ansible.compatibility_mode = "2.0"
ansible.playbook = "ansible/playbooks/jenkins.yml"
ansible.extra_vars = {
node_ip: "10.10.10.10",
}
end
end
# Provision Spinnaker
config.vm.define "spinnaker" do |spinnaker|
spinnaker.vm.provider "virtualbox" do |vb, override|
vb.name = "spinnaker"
vb.memory = 6144
vb.cpus = 2
end
spinnaker.vm.hostname = "spinnaker"
spinnaker.vm.network :private_network, ip: "10.10.10.20"
spinnaker.vm.provision "ansible" do |ansible|
ansible.compatibility_mode = "2.0"
ansible.playbook = "ansible/playbooks/spinnaker.yml"
ansible.extra_vars = {
node_ip: "10.10.10.20",
}
end
end
end