Fix tmpfiles.d when multiple service are running
This fix tmpfile when multiple services runs in the same host with systemd. Change-Id: I2291e029e3d875408a81041a41d21042a3660e29
This commit is contained in:
parent
b9545d93ee
commit
ca5f36082e
@ -72,6 +72,8 @@ cinder_system_comment: cinder system user
|
||||
cinder_system_shell: /bin/false
|
||||
cinder_system_home_folder: "/var/lib/{{ cinder_system_user_name }}"
|
||||
|
||||
cinder_lock_path: /var/lock/cinder
|
||||
|
||||
## Cinder Auth
|
||||
cinder_service_admin_tenant_name: "service"
|
||||
cinder_service_admin_username: "cinder"
|
||||
|
@ -38,10 +38,10 @@
|
||||
- inventory_hostname in groups[item.value.group]
|
||||
- "{{ item.value.condition | default(true) }}"
|
||||
|
||||
- name: Create tempfile.d entry
|
||||
- name: Create tmpfiles.d entry
|
||||
template:
|
||||
src: "cinder-systemd-tempfiles.j2"
|
||||
dest: "/etc/tmpfiles.d/cinder.conf"
|
||||
src: "cinder-systemd-tmpfiles.j2"
|
||||
dest: "/etc/tmpfiles.d/{{ item.value.service_name }}.conf"
|
||||
mode: "0644"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
|
@ -2,3 +2,4 @@
|
||||
|
||||
D /var/lock/{{ item.value.service_name }} 2755 {{ cinder_system_user_name }} {{ cinder_system_group_name }}
|
||||
D /var/run/{{ item.value.service_name }} 2755 {{ cinder_system_user_name }} {{ cinder_system_group_name }}
|
||||
D {{ cinder_lock_path }} 2755 {{ cinder_system_user_name }} {{ cinder_system_group_name }}
|
@ -122,7 +122,7 @@ transport_url = rabbit://{% for host in cinder_rabbitmq_telemetry_servers.split(
|
||||
{% endif %}
|
||||
|
||||
[oslo_concurrency]
|
||||
lock_path = /var/lock/cinder
|
||||
lock_path = {{ cinder_lock_path }}
|
||||
|
||||
[profiler]
|
||||
profiler_enabled = {{ cinder_profiler_enabled }}
|
||||
|
Loading…
Reference in New Issue
Block a user