Fix tmpfiles.d when multiple service are running
This fix tmpfile when multiple services runs in the same host with systemd. Add ironic_lock_path vars to configure lock path Change-Id: I7c4b6a356b321c65718af3cc5b3818b7f9a61e58
This commit is contained in:
parent
86f6e8d8a5
commit
cab4614094
@ -43,6 +43,7 @@ ironic_system_shell: /bin/bash
|
||||
ironic_system_comment: ironic system user
|
||||
ironic_system_home_folder: "/var/lib/{{ ironic_system_user_name }}"
|
||||
ironic_system_log_folder: "/var/log/{{ ironic_system_user_name }}"
|
||||
ironic_lock_path: /var/lock/ironic
|
||||
|
||||
# Ironic Program and Service names
|
||||
ironic_api_program_name: apache2
|
||||
|
@ -29,10 +29,10 @@
|
||||
group: "{{ system_group }}"
|
||||
mode: "02755"
|
||||
|
||||
- name: Create tempfile.d entry
|
||||
- name: Create tmpfiles.d entry
|
||||
template:
|
||||
src: "ironic-systemd-tempfiles.j2"
|
||||
dest: "/etc/tmpfiles.d/ironic.conf"
|
||||
src: "ironic-systemd-tmpfiles.j2"
|
||||
dest: "/etc/tmpfiles.d/{{ program_name }}.conf"
|
||||
mode: "0644"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
|
@ -58,7 +58,7 @@
|
||||
- { path: "{{ ironic_system_home_folder }}/images" }
|
||||
- { path: "{{ ironic_system_home_folder }}/master_images" }
|
||||
- { path: "{{ ironic_system_home_folder }}/cache/api", mode: "0700" }
|
||||
- { path: "/var/lock/ironic" }
|
||||
- { path: "{{ ironic_lock_path }}" }
|
||||
- { path: "/var/run/ironic" }
|
||||
- { path: "/var/www/cgi-bin", owner: root, group: root }
|
||||
- { path: "/var/www/cgi-bin/ironic" }
|
||||
|
@ -2,3 +2,4 @@
|
||||
|
||||
D /var/lock/{{ program_name }} 2755 {{ system_user }} {{ system_group }}
|
||||
D /var/run/{{ program_name }} 2755 {{ system_user }} {{ system_group }}
|
||||
D {{ ironic_lock_path }} 2755 {{ system_user }} {{ system_group }}
|
@ -118,7 +118,7 @@ insecure = {{ keystone_service_adminuri_insecure | bool }}
|
||||
[oneview]
|
||||
|
||||
[oslo_concurrency]
|
||||
lock_path = /var/lock/ironic
|
||||
lock_path = {{ ironic_lock_path }}
|
||||
|
||||
[oslo_messaging_amqp]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user