Open log server of OSA 05/50005/2
authorYifei Xue <xueyifei@huawei.com>
Thu, 4 Jan 2018 06:54:12 +0000 (14:54 +0800)
committerYifei Xue <xueyifei@huawei.com>
Tue, 9 Jan 2018 11:58:38 +0000 (11:58 +0000)
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>
deploy/adapters/ansible/roles/config-osa/templates/openstack_user_config.yml.j2

index be119fb..a4f54b4 100644 (file)
@@ -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