summaryrefslogtreecommitdiff
path: root/install-files/openstack/usr/share/openstack/openvswitch.yml
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-07-07 10:01:07 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-07-07 10:01:07 +0000
commitf6046f9b54c1f14d12a67fa66ca0c881b49e8ceb (patch)
tree7c4d5b1aa87b991fecb0b2c585514069947c3f0a /install-files/openstack/usr/share/openstack/openvswitch.yml
parentdeba555368fd21316025c5ee0eaaf517b938775e (diff)
downloaddefinitions-f6046f9b54c1f14d12a67fa66ca0c881b49e8ceb.tar.gz
Move old Baserock format definitions into old/ directory
Diffstat (limited to 'install-files/openstack/usr/share/openstack/openvswitch.yml')
-rw-r--r--install-files/openstack/usr/share/openstack/openvswitch.yml38
1 files changed, 0 insertions, 38 deletions
diff --git a/install-files/openstack/usr/share/openstack/openvswitch.yml b/install-files/openstack/usr/share/openstack/openvswitch.yml
deleted file mode 100644
index 47257f7f..00000000
--- a/install-files/openstack/usr/share/openstack/openvswitch.yml
+++ /dev/null
@@ -1,38 +0,0 @@
----
-- hosts: localhost
- tasks:
-
- - name: Create openvswitch directories
- file: path={{ item }} state=directory
- with_items:
- - /etc/openvswitch
- - /var/run/openvswitch
-
- - shell: >
- ovsdb-tool create /etc/openvswitch/conf.db /usr/share/openvswitch/vswitch.ovsschema
- creates=/etc/openvswitch/conf.db
-
- # We enable the openvswitch-db-server in a different task to identify
- # the first time we run this script by identifying when we enable the
- # unit.
- #
- # We need to identify this to initialise the database.
- - name: Enable openvswitch database service
- service: name={{ item }} enabled=yes
- with_items:
- - openvswitch-db-server.service
- register: openvswitch_db_enable
-
- - name: Start openvswitch database service
- service: name={{ item }} state=started
- with_items:
- - openvswitch-db-server.service
-
- - name: initialise openvswitch-db
- shell: ovs-vsctl --no-wait init
- when: openvswitch_db_enable|changed
-
- - name: Enable and start Open vSwitch service
- service: name={{ item }} enabled=yes state=started
- with_items:
- - openvswitch.service