Andy Bavier | 1b8a537 | 2016-07-07 19:36:21 -0400 | [diff] [blame^] | 1 | # -*- mode: ruby -*- |
| 2 | # vi: set ft=ruby : |
| 3 | |
| 4 | Vagrant.configure(2) do |config| |
| 5 | |
| 6 | if (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil |
| 7 | config.vm.synced_folder ".", "/platform-install", mount_options: ["dmode=700,fmode=600"] |
| 8 | else |
| 9 | config.vm.synced_folder ".", "/platform-install" |
| 10 | end |
| 11 | |
| 12 | config.vm.define "platdev" do |d| |
| 13 | d.ssh.forward_agent = true |
| 14 | d.vm.box = "ubuntu/trusty64" |
| 15 | d.vm.hostname = "platdev" |
| 16 | d.vm.network "private_network", ip: "10.100.198.200" |
| 17 | d.vm.provision :shell, path: "scripts/bootstrap_ansible.sh" |
| 18 | d.vm.provision :shell, inline: "PYTHONUNBUFFERED=1 ansible-playbook /platform-install/ansible/platdev.yml -c local" |
| 19 | d.vm.provider "virtualbox" do |v| |
| 20 | v.memory = 2048 |
| 21 | end |
| 22 | end |
| 23 | |
| 24 | if Vagrant.has_plugin?("vagrant-cachier") |
| 25 | config.cache.scope = :box |
| 26 | end |
| 27 | |
| 28 | end |