-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathVagrantfile
42 lines (33 loc) · 1.13 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
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "debian/jessie64"
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--usb", "off"]
vb.customize ["modifyvm", :id, "--usbehci", "off"]
end
config.vm.hostname = 'sandstorm.172.19.22.22.xip.io'
config.vm.network "private_network", ip: "172.19.22.22"
# Setup a loop device so we can test debops.cryptsetup in Vagrant
config.vm.provision "shell", inline: <<-EOF
if [ ! -f "/tmp/loop0-file" ]; then
dd if=/dev/zero of=/tmp/loop0-file bs=1M count=1000
fi
if [ ! -e "/dev/loop0" ]; then
losetup /dev/loop0 /tmp/loop0-file
fi
if [ ! -f "/tmp/loop1-file" ]; then
dd if=/dev/zero of=/tmp/loop1-file bs=1M count=1000
fi
if [ ! -e "/dev/loop1" ]; then
losetup /dev/loop1 /tmp/loop1-file
fi
EOF
config.vm.provision :ansible do |ansible|
ansible.playbook = "test.yml"
# ansible.verbose = "vvvv"
# ansible.tags = ""
end
end