-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
30 lines (22 loc) · 878 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
Vagrant.configure('2') do |config|
config.vm.provider :virtualbox do |vbox, override|
override.vm.box = 'arch'
vbox.customize ["modifyvm", :id, "--memory", 2048]
end
config.vm.provider :vmware_fusion do |vbox, override|
override.vm.box = 'arch'
vbox.customize ["modifyvm", :id, "--memory", 2048]
end
config.vm.hostname = 'arch.local'
config.vm.network "private_network", ip: "172.16.100.2"
config.vm.provision :ansible do |ansible|
ansible.playbook = 'site.yml'
ansible.host_key_checking = false
# ansible.tags = ['x', 'tmux']
# ansible.skip_tags = ['xmonad']
# ansible.verbose = 'vvvv'
# Workaround: https://github.com/mitchellh/vagrant/issues/2174
extra_vars = { ansible_ssh_user: 'vagrant', testing: true}
ansible.raw_arguments = "--extra-vars=" + extra_vars.map { |k,v| "#{k}=#{v}" }.join(" ")
end
end