Skip to content

Instantly share code, notes, and snippets.

@stephenwithav
Created November 1, 2014 20:12
Show Gist options
  • Save stephenwithav/27f526c426da5c822a5d to your computer and use it in GitHub Desktop.
Save stephenwithav/27f526c426da5c822a5d to your computer and use it in GitHub Desktop.
Proposed Vagrant file with force-read support
# -*- mode: ruby -*-
# vi: set ft=ruby :
# 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|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "puppetlabs/centos-5.10-64-nocm"
config.vm.provider "virtualbox" do |v|
v.memory = 512
v.cpus = 2
end
config.vm.provision "ansible" do |ansible|
ansible.playbook = "none.yml"
ansible.force_read = true
end
config.vm.define "web" do |web|
web.vm.network "private_network", ip: "10.21.31.41"
end
config.vm.define "db" do |db|
db.vm.network "private_network", ip: "10.21.31.91"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment