forked from liatrio-chef/hygieia-dev-baked
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
33 lines (26 loc) · 1.36 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
#
# hygieia-dev
#
config.vm.define "hygieia", :primary => true do |hygieia|
hygieia.vm.box = "liatrio/hygieia-dev"
hygieia.vm.hostname = 'hygieia-dev'
hygieia.vm.network :private_network, ip: "192.168.100.10"
hygieia.vm.network :forwarded_port, guest: 22, host: 2210, id: "ssh"
hygieia.vm.network :forwarded_port, guest: 8081, host: 18081 # archiva
hygieia.vm.network :forwarded_port, guest: 9000, host: 19000 # sonarqube
hygieia.vm.network :forwarded_port, guest: 8082, host: 18082 # tomcat
hygieia.vm.network :forwarded_port, guest: 8083, host: 18083 # jenkins
hygieia.vm.network :forwarded_port, guest: 3000, host: 13000 # hygieia
hygieia.vm.network :forwarded_port, guest: 8080, host: 18080 # hygieia-api
hygieia.vm.provider :virtualbox do |v|
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
v.customize ["modifyvm", :id, "--cpus", 2]
v.customize ["modifyvm", :id, "--memory", 1536]
#v.customize ["modifyvm", :id, "--name", "hygieia-liatrio"]
end
hygieia.vm.provision "shell", inline: "systemctl enable tomcat_petclinic && firewall-cmd --permanent --add-port=8081/tcp --add-port=9000/tcp --add-port=8082/tcp --add-port=8080/tcp && firewall-cmd --reload && echo '192.168.100.40 imbucd' >> /etc/hosts"
end
end