-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathVagrantfile
23 lines (23 loc) · 1.06 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
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/focal64"
config.vm.network "forwarded_port", guest: 3000, host: 3001
config.vm.network "forwarded_port", guest: 8081, host: 8081
config.vm.network "forwarded_port", guest: 8082, host: 8082
config.vm.network "forwarded_port", guest: 9090, host: 9090
config.vm.network "forwarded_port", guest: 9273, host: 9273
config.vm.define "metrics"
config.vm.provision "shell",
inline: "sudo apt-get update"
config.vm.provision "ansible" do |ansible|
ansible.verbose = "v"
ansible.compatibility_mode = "2.0"
ansible.playbook = "shields-io-metrics.yml"
# extra_vars accepts one file only, using raw_arguments to pass two files
# "[email protected]" works, but "-e @variables-local.yml" does not work
ansible.raw_arguments = ["[email protected]", "[email protected]"]
ansible.skip_tags = ["certbot-obtain", "certbot-nginx", "grafana_legacy"]
ansible.become = true
ansible.galaxy_role_file = "requirements.yml"
ansible.galaxy_roles_path = "roles_for_vagrant"
end
end