2015-03-24 19:56:50 +00:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
|
|
|
|
2015-06-15 17:40:27 +00:00
|
|
|
# WARNING: This Vagrantfile is for development purposes only. It is intended to
|
|
|
|
# bootstrap required services - such as mysql and rabbit - into a reliably
|
|
|
|
# accessible VM, rather than forcing the engineer to install and manage these
|
|
|
|
# services manually. This Vagrantfile is not intended to assist in provisioning
|
|
|
|
# Ironic. For that, please use the bifrost project.
|
|
|
|
|
2015-03-24 19:56:50 +00:00
|
|
|
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|
|
2015-05-15 18:32:21 +00:00
|
|
|
vb.customize ['modifyvm', :id, '--memory', '512', '--cpuexecutioncap', '25']
|
2015-03-24 19:56:50 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
ironic.vm.network 'private_network', ip: '192.168.99.11' # It goes to 11.
|
|
|
|
|
|
|
|
ironic.vm.provision 'ansible' do |ansible|
|
|
|
|
ansible.verbose = 'v'
|
2015-08-07 07:48:08 +00:00
|
|
|
ansible.playbook = 'vagrant.yaml'
|
2015-03-24 19:56:50 +00:00
|
|
|
ansible.extra_vars = {
|
|
|
|
ip: '192.168.99.11'
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|