From 1d6fa460796dab52d9d6e4d2889e7ef12baf8511 Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Thu, 27 Aug 2015 11:24:53 +0200 Subject: [PATCH] Vagrant storagectl as option --- Vagrantfile | 3 ++- vagrant_variables.yml.sample | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index 842aff0cd..59539d815 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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', diff --git a/vagrant_variables.yml.sample b/vagrant_variables.yml.sample index e41639b50..a7278eb05 100644 --- a/vagrant_variables.yml.sample +++ b/vagrant_variables.yml.sample @@ -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'