Fix tmpfiles.d when multiple service are running.
adding {{ neutron_lock_path }} for the neutron lock dir. Change-Id: I661dd9da6b9a65be3266907e560703caa0a0d6af
This commit is contained in:
parent
b62a312bf4
commit
1ee6c091f2
@ -63,6 +63,7 @@ neutron_lib_dir: "{{ neutron_bin | dirname }}/lib/python2.7/site-packages/"
|
||||
|
||||
# Set the Neutron configuration path
|
||||
neutron_conf_dir: /etc/neutron
|
||||
neutron_lock_path: "/var/lock/neutron"
|
||||
|
||||
# Enable/Disable designate
|
||||
neutron_designate_enabled: False
|
||||
|
@ -29,10 +29,10 @@
|
||||
group: "{{ system_group }}"
|
||||
mode: "02755"
|
||||
|
||||
- name: Create tempfile.d entry
|
||||
- name: Create tmpfiles.d entry
|
||||
template:
|
||||
src: "neutron-systemd-tempfiles.j2"
|
||||
dest: "/etc/tmpfiles.d/neutron.conf"
|
||||
src: "neutron-systemd-tmpfiles.j2"
|
||||
dest: "/etc/tmpfiles.d/{{ program_name }}.conf"
|
||||
mode: "0644"
|
||||
owner: "root"
|
||||
group: "root"
|
||||
|
@ -44,7 +44,7 @@
|
||||
- { path: "{{ neutron_conf_dir }}/rootwrap.d", owner: "root", group: "root" }
|
||||
- { path: "/etc/sudoers.d", mode: "0750", owner: "root", group: "root" }
|
||||
- { path: "/var/cache/neutron" }
|
||||
- { path: "/var/lock/neutron" }
|
||||
- { path: "{{ neutron_lock_path }}" }
|
||||
- { path: "/var/run/neutron" }
|
||||
- { path: "{{ neutron_system_home_folder }}", mode: "0755" }
|
||||
- { path: "{{ neutron_system_home_folder }}/ha_confs" }
|
||||
|
@ -1,4 +1,5 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
D /var/lock/{{ program_name }} 2755 {{ system_user }} {{ system_group }}
|
||||
D /var/run/{{ program_name }} 2755 {{ system_user }} {{ system_group }}
|
||||
D /var/run/{{ program_name }} 2755 {{ system_user }} {{ system_group }}
|
||||
D {{ neutron_lock_path }} 2755 {{ system_user }} {{ system_group }}
|
@ -197,4 +197,4 @@ transport_url = rabbit://{% for host in neutron_rabbitmq_telemetry_servers.split
|
||||
|
||||
# Concurrency (locking mechanisms)
|
||||
[oslo_concurrency]
|
||||
lock_path = /var/lock/neutron
|
||||
lock_path = {{ neutron_lock_path }}
|
||||
|
Loading…
Reference in New Issue
Block a user