aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliyingjun <yingjun.li@kylin-cloud.com>2016-10-10 12:06:22 +0800
committerliyingjun <yingjun.li@kylin-cloud.com>2016-10-10 12:06:22 +0800
commit9de0894fbd414b27a2c10d54960bcfb10cc990ca (patch)
tree742170c2af5e069f351c3d8059be2dbcad9f58bc
parentb13b0aad0506d443677b138db33b442b33dc1fc7 (diff)
downloadkolla-9de0894fbd414b27a2c10d54960bcfb10cc990ca.tar.gz
kolla-9de0894fbd414b27a2c10d54960bcfb10cc990ca.zip
Make sahara api worker configurable
Sahara api workers is hard-coded to 2 [1], it should be configurable as other services do. [1]: https://github.com/openstack/kolla/blob/master/ansible/roles/sahara/templates/sahara.conf.j2#L9 Change-Id: Iefb487275c4e0d02f58a198e3995ca096f5e9218 Closes-bug: 1631835
-rw-r--r--ansible/roles/sahara/templates/sahara.conf.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/ansible/roles/sahara/templates/sahara.conf.j2 b/ansible/roles/sahara/templates/sahara.conf.j2
index 9cf162dae..ad2940732 100644
--- a/ansible/roles/sahara/templates/sahara.conf.j2
+++ b/ansible/roles/sahara/templates/sahara.conf.j2
@@ -6,7 +6,7 @@ host = {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['addr
transport_url = rabbit://{% for host in groups['rabbitmq'] %}{{ rabbitmq_user }}:{{ rabbitmq_password }}@{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ rabbitmq_port }}{% if not loop.last %},{% endif %}{% endfor %}
use_neutron = True
-api_workers = 2
+api_workers = {{ openstack_service_workers }}
use_floating_ips = False
use_namespaces = True