Merge "Create ovs temp directories when using ovs"

This commit is contained in:
Zuul 2018-03-18 12:58:06 +00:00 committed by Gerrit Code Review
commit c0a663fac5

View File

@ -42,6 +42,22 @@
notify:
- Restart neutron services
- name: Create ovs tempfiles directory
block:
- name: Create ovs tmpfiles file
lineinfile:
dest: "/etc/tmpfiles.d/openstack-openvswitch.conf"
line: "D /var/run/openvswitch 2755 root root"
create: true
- name: Create ovs tmp directory
file:
path: "/var/run/openvswitch"
state: directory
mode: "02755"
when:
- "'ovs' in neutron_plugin_type | lower"
- name: Place the systemd init script
config_template:
src: "neutron-systemd-init.j2"