Merge "Use www-data user for bifrost nginx log directory"

This commit is contained in:
Zuul 2018-03-13 08:24:31 +00:00 committed by Gerrit Code Review
commit ee00e3eeb3

View File

@ -1,5 +1,8 @@
---
- name: Ensure log directories exist
vars:
nginx_user: "{{ 'www-data' if is_debian else 'nginx' }}"
is_debian: "{{ kolla_base_distro in ['debian', 'ubuntu'] }}"
command: >
docker exec bifrost_deploy
bash -c 'mkdir -p /var/log/kolla/ironic &&
@ -7,7 +10,7 @@
mkdir -p /var/log/kolla/ironic-inspector &&
chown ironic:ironic /var/log/kolla/ironic-inspector &&
mkdir -p /var/log/kolla/nginx &&
chown nginx:nginx /var/log/kolla/nginx'
chown {{ nginx_user }}:{{ nginx_user }} /var/log/kolla/nginx'
- name: Bootstrap bifrost (this may take several minutes)
command: >