master
Raw Download raw file
 1# -*- mode: ruby -*-
 2# vi: set ft=ruby :
 3
 4# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
 5VAGRANTFILE_API_VERSION = "2"
 6
 7Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
 8  config.vm.box = "precise64"
 9  config.vm.box_url = "http://files.vagrantup.com/precise64.box"
10  config.vm.network :public_network, :bridge => 'eth0', :auto_config => false
11  config.ssh.port = 2222
12  config.vm.provision :ansible do |ansible|
13    ansible.verbose = true
14    ansible.playbook = "target_playbook.yml"
15    ansible.inventory_file = "target_inventory"
16    ansible.extra_vars = {
17        address:"0.0.0.0/24", # Set this to desired static ip and subnet make
18        device:"ethX",        # Set this to target inteface name
19        ansible_ssh_port: 2222}
20  end
21end