Allow RESTAPI to be optional

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>
pull/742/head
Daniel Gryniewicz 2016-04-29 10:07:10 -04:00
parent 04c594f328
commit 1f52a97d31
4 changed files with 15 additions and 1 deletions

7
Vagrantfile vendored
View 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 = {

View 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

View 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

View 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