Adding Adjustment for ovsdb
This will allow us to switch between native or vsctl Change-Id: Id6636231873986e9a9b80e0174bf23666a4416b2
This commit is contained in:
parent
134a923613
commit
009ce02548
9
ansible/browbeat/roles/neutron-ovsdb/handlers/main.yml
Normal file
9
ansible/browbeat/roles/neutron-ovsdb/handlers/main.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
#
|
||||||
|
# Neutron handlers for browbeat adjustment
|
||||||
|
#
|
||||||
|
|
||||||
|
- name: restart neutron services
|
||||||
|
service: name={{ item }} state=restarted
|
||||||
|
with_items:
|
||||||
|
- neutron-openvswitch-agent
|
15
ansible/browbeat/roles/neutron-ovsdb/tasks/main.yml
Normal file
15
ansible/browbeat/roles/neutron-ovsdb/tasks/main.yml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
- name: Configure the ovsdb driver
|
||||||
|
ini_file:
|
||||||
|
dest: "{{ item.file }}"
|
||||||
|
mode: 0640
|
||||||
|
section: "{{ item.section }}"
|
||||||
|
option: "{{ item.option }}"
|
||||||
|
value: "{{ item.value }}"
|
||||||
|
backup: yes
|
||||||
|
with_items:
|
||||||
|
- { file: /etc/neutron/plugins/ml2/openvswitch_agent.ini, section: ovs, option: ovsdb_interface, value: "{{ driver }}" }
|
||||||
|
notify:
|
||||||
|
- unmanage neutron services
|
||||||
|
- restart neutron services
|
||||||
|
- manage neutron services
|
||||||
|
- cleanup neutron services
|
Loading…
Reference in New Issue
Block a user