Move LXC logs to /openstack/log

In order to ensure that we collect LXC container actions for
OpenStack-CI diagnostic purposes, and to collect the important
logs in the right place, this patch moves the LXC log folder
to /openstack/log which is where all other logs are gathered.

Change-Id: I9455aa6cd17e12a5e90658e0cbdcdfc22552a5b0
This commit is contained in:
Jesse Pretorius 2016-07-20 11:37:37 +01:00 committed by Jimmy McCrory
parent 60274f009c
commit 6bf159ff07
1 changed files with 11 additions and 0 deletions

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"