forked from Cloudbox/Cloudbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
31 lines (29 loc) · 1.22 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
$script = <<-SCRIPT
cd ~/cloudbox
for f in defaults/*.default; do base=${f##*/} base=${base%.default}; cp -n -- "$f" "$base"; done
SCRIPT
Vagrant.configure("2") do |config|
config.vm.synced_folder ".", "/vagrant", disabled: false
config.vm.synced_folder ".", "/home/vagrant/cloudbox", disabled: false
config.vm.provision "shell", path: "https://cloudbox.works/scripts/dep.sh"
config.vm.provision "shell", privileged: false, inline: $script
config.vm.provision "ansible_local", run: "always" do |ansible|
ansible.compatibility_mode = "2.0"
ansible.config_file = "/home/vagrant/cloudbox/ansible.cfg"
ansible.inventory_path = "/home/vagrant/cloudbox/inventories/local"
ansible.limit = "all"
ansible.playbook = "/home/vagrant/cloudbox/cloudbox.yml"
ansible.become = true
# ansible.verbose Examples: false, true (equivalent to v), -vvv (equivalent to vvv), vvvv.
ansible.verbose = false
ansible.tags = "cloudbox"
ansible.skip_tags = "settings"
ansible.extra_vars = { continuous_integration: true }
end
# config.vm.define "ubuntu18" do |ubuntu18|
# ubuntu18.vm.box = "generic/ubuntu1804"
# end
config.vm.define "ubuntu16" do |ubuntu16|
ubuntu16.vm.box = "generic/ubuntu1604"
end
end