Skip to content

Instantly share code, notes, and snippets.

@safx
Created March 1, 2014 15:04
Show Gist options
  • Save safx/9291109 to your computer and use it in GitHub Desktop.
Save safx/9291109 to your computer and use it in GitHub Desktop.
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define :node1 do |m|
m.vm.box = "precise32"
m.vm.box_url = "http://files.vagrantup.com/precise32.box"
m.vm.network :private_network, ip: "192.168.1.11"
m.vm.network :forwarded_port, guest: 22, host: 22211, id: "ssh"
end
config.vm.provision "ansible" do |ansible|
ansible.playbook = "playbook.yml"
ansible.raw_arguments = '-i ansible_hosts -u vagrant --private-key=~/.vagrant.d/insecure_private_key'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment