summaryrefslogtreecommitdiff
path: root/Vagrantfile
diff options
context:
space:
mode:
authorMichael Krotscheck <krotscheck@gmail.com>2015-03-24 12:56:50 -0700
committerMichael Krotscheck <krotscheck@gmail.com>2015-05-13 17:17:16 -0700
commitef237e0e5f11bfabca760b898756af39f0ffbd31 (patch)
tree39c3b5742e027284eaf78bd880b12bce9ae23dc0 /Vagrantfile
parent24b8ee4d38383d195b86ac5d644d8b261cdba3d5 (diff)
downloadironic-ef237e0e5f11bfabca760b898756af39f0ffbd31.tar.gz
Added vagrant VM for developer use
This patch adds a vagrantfile and ansible playbook that captures the instructions from the ironic developer quickstart. By using 'vagrant up', and configuring your local dev instance to use 192.168.99.11, you should be able to exercise your services locally. Documentation has also been updated. Change-Id: Ic4f42e59cbda968d301c797ef77ff98030c55c41
Diffstat (limited to 'Vagrantfile')
-rw-r--r--Vagrantfile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Vagrantfile b/Vagrantfile
new file mode 100644
index 000000000..d1f7bb76b
--- /dev/null
+++ b/Vagrantfile
@@ -0,0 +1,25 @@
+# -*- mode: ruby -*-
+# vi: set ft=ruby :
+
+VAGRANTFILE_API_VERSION = '2'
+
+Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
+
+ config.vm.box = 'ubuntu/trusty64'
+
+ config.vm.define 'ironic' do |ironic|
+ ironic.vm.provider :virtualbox do |vb|
+ vb.customize ['modifyvm', :id,'--memory', '2048']
+ end
+
+ ironic.vm.network 'private_network', ip: '192.168.99.11' # It goes to 11.
+
+ ironic.vm.provision 'ansible' do |ansible|
+ ansible.verbose = 'v'
+ ansible.playbook = 'vagrant.yml'
+ ansible.extra_vars = {
+ ip: '192.168.99.11'
+ }
+ end
+ end
+end