Created
July 29, 2013 22:03
-
-
Save ernestom/6108276 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 : | |
$local_hostname_prefix = `hostname -s`.strip | |
Vagrant.configure("2") do |config| | |
config.vm.box = "precise64" | |
config.vm.network :private_network, ip: "192.168.111.222" | |
# This path is declared in ansible/group_vars/all.yml based on | |
# the server_hostname variable in ansible/main.yml | |
config.vm.synced_folder( | |
"public", "/var/www/rallymexico.com/public", | |
{:nfs => true, :create => true} | |
) | |
config.vm.provision :ansible do |ansible| | |
ansible.playbook = "ansible/main.yml" | |
ansible.inventory_file = "ansible/hosts" | |
ansible.extra_vars = { | |
is_development: true, | |
local_hostname_prefix: $local_hostname_prefix | |
} | |
#ansible.verbose = true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment