Fix logging permissions for IPA

Since the change to Zuulv3 based CI, we've observed some
changes in default permissions which cause some CI jobs to
now fail.

As such, adding the creation of /var/log/ironic the setup of
ironic.

Change-Id: I8b6dbb724c6de618798d4207fbfacc935837ae57
This commit is contained in:
Julia Kreger 2017-11-29 09:55:42 -05:00
parent f664ea3deb
commit d16156584a
1 changed files with 14 additions and 0 deletions

View File

@ -182,13 +182,16 @@
state: directory
mode: 0755
when: init_template == 'systemd_template.j2'
- name: "Install ironic-inspector to permit use of inspection interface"
include: inspector_bootstrap.yml
when: enable_inspector | bool == true
- name: "Get ironic-api & ironic-conductor install location"
shell: echo $(dirname $(which ironic-api))
register: ironic_install_prefix
environment: "{{ bifrost_venv_env if enable_venv else {} }}"
- name: "Set permissions for /var/lib/ironic for the ironic user"
file:
path: "{{ item }}"
@ -199,6 +202,17 @@
with_items:
- "/var/lib/ironic"
- "/var/lib/ironic/images"
- name: "Set permissions for /var/log/ironic for the ironic user"
file:
path: "{{ item }}"
state: directory
mode: 0755
owner: "ironic"
group: "ironic"
with_items:
- "/var/log/ironic"
- name: "Place ironic services"
template:
src: "{{ init_template }}"