-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
37 lines (31 loc) · 1.07 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
Vagrant.configure(2) do |config|
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'virtualbox'
config.vm.box = "xenial"
config.vm.box_url = "https://share.phys.ethz.ch/~isg/vagrant/xenial64.box"
config.vm.define 'bang-dev', primary: true do |host|
config.vm.hostname = "bang-dev"
config.vm.network "private_network", ip: "192.168.13.100"
config.vm.provider :virtualbox do |vb|
vb.customize [ "modifyvm", :id, "--nictype1", "virtio" ]
vb.memory = 256
vb.cpus = 1
end
end
config.vm.provision "shell", inline: <<-SHELL
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get -y upgrade
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y python
SHELL
config.vm.provision "ansible" do |ansible|
ansible.groups = {
"bang" => [ "bang-dev" ],
"bangweb" => [ "bang-dev" ],
"bangdb" => [ "bang-dev" ],
"bangweb-vagrant" => [ "bang-dev" ],
}
ansible.sudo = true
ansible.playbook = "./playbook-BaNG.yml"
# ansible.verbose = "vvv"
end
end
# vi: set ft=ruby nofoldenable: