Skip to content

Instantly share code, notes, and snippets.

@ryuone
Created February 24, 2015 15:36
Show Gist options
  • Save ryuone/cc406f63a685e92c373d to your computer and use it in GitHub Desktop.
Save ryuone/cc406f63a685e92c373d to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define :node1 do |node|
node.vm.box = "ubuntu-14.04"
node.vm.network "private_network", ip: "192.168.50.10"
node.vm.provider "virtualbox" do |vb|
vb.name = "webserver"
vb.customize ["modifyvm", :id, "--memory", "512"]
end
node.vm.provision :ansible do |ansible|
ansible.playbook = 'provision_node1.yml'
ansible.inventory_path = "ansible_hosts_node1"
ansible.limit = 'all'
ansible.verbose = 'v'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment