From f12dab98355e5992a609ae92afd94ac00babd79e Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Sun, 15 Feb 2015 02:01:35 +0100 Subject: [PATCH] Enable proper options while activating rgw or mds with Vagrant MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When enabling radosgw virtual machines, we also need to enable the radosgw variable. Same thing goes with the mds. Signed-off-by: Sébastien Han --- Vagrantfile | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 88200abeb..df753f22e 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -23,10 +23,24 @@ ansible_provision = proc do |ansible| } # In a production deployment, these should be secret - ansible.extra_vars = { - fsid: '4a158d27-f750-41d5-9e7f-26ce4c9d2d45', - monitor_secret: 'AQAWqilTCDh7CBAAawXt6kyTgLFCxSvJhTEmuw==' - } + if NRGWS != '0' + ansible.extra_vars = { + fsid: '4a158d27-f750-41d5-9e7f-26ce4c9d2d45', + monitor_secret: 'AQAWqilTCDh7CBAAawXt6kyTgLFCxSvJhTEmuw==', + radosgw: 'true', + } + elsif NMDSS != '0' + ansible.extra_vars = { + fsid: '4a158d27-f750-41d5-9e7f-26ce4c9d2d45', + monitor_secret: 'AQAWqilTCDh7CBAAawXt6kyTgLFCxSvJhTEmuw==', + mds: 'true', + } + else + ansible.extra_vars = { + fsid: '4a158d27-f750-41d5-9e7f-26ce4c9d2d45', + monitor_secret: 'AQAWqilTCDh7CBAAawXt6kyTgLFCxSvJhTEmuw==', + } + end ansible.limit = 'all' end -- 2.47.3