Merge "Move LXC logs to /openstack/log"

This commit is contained in:
Jenkins 2016-07-22 02:11:18 +00:00 committed by Gerrit Code Review
commit b0fa39e01f

View File

@ -18,6 +18,17 @@
gather_facts: "{{ gather_facts | default(True) }}"
max_fail_percentage: 20
user: root
pre_tasks:
- name: Create log dir
file:
path: "/openstack/log/{{ inventory_hostname }}-lxc"
state: directory
- name: Create log aggregation links
file:
src: "/openstack/log/{{ inventory_hostname }}-lxc"
dest: "/var/log/lxc"
state: "link"
force: "yes"
roles:
- { role: "lxc_hosts", tags: [ "lxc-host", "host-setup" ] }
- role: "rsyslog_client"