Created
September 8, 2015 20:06
-
-
Save deathbearbrown/b29c509e89a5615c0aab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network "private_network", ip: "192.168.13.71" | |
config.vm.synced_folder ".", "/mnt/" | |
config.ssh.forward_agent = true | |
config.ssh.insert_key = false | |
config.hostsupdater.aliases = [ | |
"auth.dev" | |
] | |
config.vm.provision "ansible" do |ansible| | |
ansible.limit = "vagrant" | |
ansible.inventory_path = "ansible/inventory/development" | |
ansible.playbook = "ansible/provision.yml" | |
end | |
# the nginx init script is triggered during startup before vagrant mounts | |
# the shared folder. as a result, nginx can't start. this ensures it will | |
# always be started after that event. | |
config.vm.provision :shell, :inline => "sudo service nginx start || true", run: "always" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment