Skip to content

Instantly share code, notes, and snippets.

@vicendominguez
Created February 26, 2015 11:15
Show Gist options
  • Save vicendominguez/fd1feaada87d17fd8075 to your computer and use it in GitHub Desktop.
Save vicendominguez/fd1feaada87d17fd8075 to your computer and use it in GitHub Desktop.
Vagrantfile Template (Ansible)
Vagrant.configure(2) do |config|
config.vm.define "base", primary: true do |base|
base.vm.box = "chef/centos-6.6"
base.vm.network "private_network", ip: "10.1.1.10"
base.vm.provision "ansible" do |ansible|
ansible.playbook = "ansible/playbooks/n3vagrant-basepackages.yml"
ansible.sudo = true
end
end
config.vm.define "nginx" do |nginx|
nginx.vm.box = "chef/centos-6.6"
nginx.vm.network "private_network", ip: "10.1.1.11"
nginx.vm.provision "ansible" do |ansible|
ansible.playbook = "ansible/playbooks/n3vagrant-baseandnginxstack.yml"
ansible.sudo = true
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment