]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Allow RESTAPI to be optional 742/head
authorDaniel Gryniewicz <dang@redhat.com>
Fri, 29 Apr 2016 14:07:10 +0000 (10:07 -0400)
committerDaniel Gryniewicz <dang@redhat.com>
Fri, 29 Apr 2016 14:07:10 +0000 (10:07 -0400)
When running via Vagrant, rather than always starting RESTAPI on each
monitor, make it optional via a configuration option in
vagrant_variables.yml.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
Vagrantfile
vagrant_variables.yml.atomic
vagrant_variables.yml.openstack
vagrant_variables.yml.sample

index 733148ce25e6e2190129aba9cc1971e8f6f99809..2c29a4b375248fd6fba1e9a5de6f82b71d40885b 100644 (file)
@@ -11,6 +11,7 @@ NMONS      = settings['mon_vms']
 NOSDS      = settings['osd_vms']
 NMDSS      = settings['mds_vms']
 NRGWS      = settings['rgw_vms']
+RESTAPI    = settings['restapi']
 CLIENTS    = settings['client_vms']
 SUBNET     = settings['subnet']
 BOX        = settings['vagrant_box']
@@ -42,13 +43,17 @@ ansible_provision = proc do |ansible|
   # https://github.com/mitchellh/vagrant/issues/3539
   ansible.groups = {
     'mons'        => (0..NMONS - 1).map { |j| "mon#{j}" },
-    'restapis'    => (0..NMONS - 1).map { |j| "mon#{j}" },
     'osds'        => (0..NOSDS - 1).map { |j| "osd#{j}" },
     'mdss'        => (0..NMDSS - 1).map { |j| "mds#{j}" },
     'rgws'        => (0..NRGWS - 1).map { |j| "rgw#{j}" },
     'clients'     => (0..CLIENTS - 1).map { |j| "client#{j}" }
   }
 
+  if RESTAPI then
+    ansible.groups['restapis'] = (0..NMONS - 1).map { |j| "mon#{j}" }
+  end
+
+
   # In a production deployment, these should be secret
   if DOCKER then
     ansible.extra_vars = {
index 0b523add1298844bdae01ab8b0bab04830c9a18e..eda2b81c479456a3539e64e12c8299ae095c04f7 100644 (file)
@@ -9,6 +9,9 @@ mds_vms: 0
 rgw_vms: 0
 client_vms: 0
 
+# Deploy RESTAPI on each of the Monitors
+#restapi: false
+
 # SUBNET TO USE FOR THE VMS
 subnet: 192.168.0
 
index f960b91190891c7f5320c2acb61213269d6c26e5..81c45359c5b96e82bc556d0d9f587b5bf79208da 100644 (file)
@@ -10,6 +10,9 @@ mds_vms: 0
 rgw_vms: 0
 client_vms: 0
 
+# Deploy RESTAPI on each of the Monitors
+#restapi: false
+
 # SUBNET TO USE FOR THE VMS
 # Use whatever private subnet your Openstack VMs are given
 subnet: 172.17.72 
index a9dd9d181a675bbe8f012cef58529e84dc13250b..7232fe940dbe8b7e2b22dc406689609c63119df0 100644 (file)
@@ -10,6 +10,9 @@ mds_vms: 0
 rgw_vms: 0
 client_vms: 0
 
+# Deploy RESTAPI on each of the Monitors
+restapi: true
+
 # INSTALL SOURCE OF CEPH
 # valid values are 'stable' and 'dev'
 ceph_install_source: stable