From 9140abc0b2cb373713b253f938fac030c96f802b Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Tue, 20 Dec 2016 16:01:13 +0800 Subject: [PATCH] Fix trove role issue * add the bind_host and bind_port option for trove api service * add emptry upgrade.yml file Change-Id: Ie861e43f98d513d2831303249ddf407de40bba2a --- ansible/roles/trove/tasks/upgrade.yml | 1 + ansible/roles/trove/templates/trove.conf.j2 | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 ansible/roles/trove/tasks/upgrade.yml diff --git a/ansible/roles/trove/tasks/upgrade.yml b/ansible/roles/trove/tasks/upgrade.yml new file mode 100644 index 0000000000..ed97d539c0 --- /dev/null +++ b/ansible/roles/trove/tasks/upgrade.yml @@ -0,0 +1 @@ +--- diff --git a/ansible/roles/trove/templates/trove.conf.j2 b/ansible/roles/trove/templates/trove.conf.j2 index f978825d7c..6c97b89ae6 100644 --- a/ansible/roles/trove/templates/trove.conf.j2 +++ b/ansible/roles/trove/templates/trove.conf.j2 @@ -2,8 +2,11 @@ debug = {{ trove_logging_debug }} log_dir = /var/log/kolla/trove -port = {{ trove_api_port }} + host = {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }} + +bind_port = {{ trove_api_port }} +bind_host = {{ hostvars[inventory_hostname]['ansible_' + api_interface]['ipv4']['address'] }} trove_api_workers = {{ openstack_service_workers }} auth_strategy = keystone