|
| 1 | +$script = <<-SCRIPT |
| 2 | +cd ~/cloudbox |
| 3 | +for f in defaults/*.default; do base=${f##*/} base=${base%.default}; cp -n -- "$f" "$base"; done |
| 4 | +SCRIPT |
| 5 | + |
| 6 | +Vagrant.configure("2") do |config| |
| 7 | + config.vm.synced_folder ".", "/vagrant", disabled: false |
| 8 | + config.vm.synced_folder ".", "/home/vagrant/cloudbox", disabled: false |
| 9 | + config.vm.provision "shell", path: "https://cloudbox.works/scripts/dep.sh" |
| 10 | + config.vm.provision "shell", privileged: false, inline: $script |
| 11 | + config.vm.provision "ansible_local", run: "always" do |ansible| |
| 12 | + ansible.compatibility_mode = "2.0" |
| 13 | + ansible.config_file = "/home/vagrant/cloudbox/ansible.cfg" |
| 14 | + ansible.inventory_path = "/home/vagrant/cloudbox/inventories/local" |
| 15 | + ansible.limit = "all" |
| 16 | + ansible.playbook = "/home/vagrant/cloudbox/cloudbox.yml" |
| 17 | + ansible.become = true |
| 18 | + # ansible.verbose Examples: false, true (equivalent to v), -vvv (equivalent to vvv), vvvv. |
| 19 | + ansible.verbose = false |
| 20 | + ansible.tags = "cloudbox" |
| 21 | + ansible.skip_tags = "settings" |
| 22 | + ansible.extra_vars = { continuous_integration: true } |
| 23 | + |
| 24 | + end |
| 25 | +# config.vm.define "ubuntu18" do |ubuntu18| |
| 26 | +# ubuntu18.vm.box = "generic/ubuntu1804" |
| 27 | +# end |
| 28 | + config.vm.define "ubuntu16" do |ubuntu16| |
| 29 | + ubuntu16.vm.box = "generic/ubuntu1604" |
| 30 | + end |
| 31 | +end |
0 commit comments