diff --git a/etc/openstack_deploy/env.d/galera.yml b/etc/openstack_deploy/env.d/galera.yml index 33a8d1d52d..9cc1d372d7 100644 --- a/etc/openstack_deploy/env.d/galera.yml +++ b/etc/openstack_deploy/env.d/galera.yml @@ -27,5 +27,6 @@ container_skel: contains: - galera properties: + log_directory: mysql_logs service_name: galera container_release: trusty diff --git a/playbooks/roles/lxc_container_create/tasks/container_create.yml b/playbooks/roles/lxc_container_create/tasks/container_create.yml index 65a08ad895..45cfc74e27 100644 --- a/playbooks/roles/lxc_container_create/tasks/container_create.yml +++ b/playbooks/roles/lxc_container_create/tasks/container_create.yml @@ -97,10 +97,10 @@ name: "{{ inventory_hostname }}" container_command: | mkdir -p /var/backup - mkdir -p /var/log/{{ properties.service_name }} + mkdir -p /var/log/{{ properties.log_directory | default(properties.service_name) }} container_config: - "lxc.mount.entry=/openstack/backup/{{ inventory_hostname }} var/backup none defaults,bind,rw 0 0" - - "lxc.mount.entry=/openstack/log/{{ inventory_hostname }} var/log/{{ properties.service_name }} none defaults,bind,rw 0 0" + - "lxc.mount.entry=/openstack/log/{{ inventory_hostname }} var/log/{{ properties.log_directory | default(properties.service_name) }} none defaults,bind,rw 0 0" - "lxc.aa_profile=lxc-openstack" when: properties.service_name is defined delegate_to: "{{ physical_host }}"