summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorYifei Xue <xueyifei@huawei.com>2018-01-04 14:54:12 +0800
committerYifei Xue <xueyifei@huawei.com>2018-01-09 11:58:38 +0000
commit5d2534f444a6ef4023549b5a65435e72aed9cb75 (patch)
treef6b2add7dfa00b6b8ac425c69a5d6546a4e9dd72 /deploy
parent1c05ddf7d46751f0e2813c5a06d3958058008488 (diff)
Open log server of OSA
JIRA: - Open log server of OpenStack Ansible to collect all of the logs in each LXC. Then it will be very convenient to debug. Change-Id: Iafd625a2af4eea04ff7528c9d8007bed1b218822 Signed-off-by: Yifei Xue <xueyifei@huawei.com>
Diffstat (limited to 'deploy')
-rw-r--r--deploy/adapters/ansible/roles/config-osa/templates/openstack_user_config.yml.j28
1 files changed, 5 insertions, 3 deletions
diff --git a/deploy/adapters/ansible/roles/config-osa/templates/openstack_user_config.yml.j2 b/deploy/adapters/ansible/roles/config-osa/templates/openstack_user_config.yml.j2
index be119fbe..a4f54b43 100644
--- a/deploy/adapters/ansible/roles/config-osa/templates/openstack_user_config.yml.j2
+++ b/deploy/adapters/ansible/roles/config-osa/templates/openstack_user_config.yml.j2
@@ -123,9 +123,11 @@ haproxy_hosts:
{% endfor %}
# rsyslog server
-#log_hosts:
- # log1:
- # ip: 10.1.0.53
+log_hosts:
+{% for host in groups.controller%}
+ {{host}}:
+ ip: {{ hostvars[host]['ansible_ssh_host'] }}
+{% endfor %}
###
### OpenStack