Skip to content

Instantly share code, notes, and snippets.

@ernestom
Created July 29, 2013 22:03
Show Gist options
  • Save ernestom/6108276 to your computer and use it in GitHub Desktop.
Save ernestom/6108276 to your computer and use it in GitHub Desktop.
# -*- 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