Vagrant storagectl as option

pull/393/head
Emilien Mantel 2015-08-27 11:24:53 +02:00
parent 6ca32bccf1
commit 1d6fa46079
2 changed files with 3 additions and 1 deletions

3
Vagrantfile vendored
View File

@ -15,6 +15,7 @@ CLIENTS = settings['client_vms']
SUBNET = settings['subnet']
BOX = settings['vagrant_box']
MEMORY = settings['memory']
STORAGECTL = settings['vagrant_storagectl']
ansible_provision = proc do |ansible|
ansible.playbook = 'site.yml'
@ -122,7 +123,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# It is set when the base box is made in our case ubuntu/trusty64.
# Be careful while changing the box.
vb.customize ['storageattach', :id,
'--storagectl', 'SATAController',
'--storagectl', STORAGECTL,
'--port', 3 + d,
'--device', 0,
'--type', 'hdd',

View File

@ -21,3 +21,4 @@ memory: 256
# - https://atlas.hashicorp.com/boxes/search?utf8=✓&sort=&provider=virtualbox&q=
# - https://download.gluster.org/pub/gluster/purpleidea/vagrant/
vagrant_box: ubuntu/trusty64
vagrant_storagectl: 'SATAController'