diff options
author | chenshuai@huawei.com <chenshuai@huawei.com> | 2015-08-10 04:52:34 -0400 |
---|---|---|
committer | chenshuai@huawei.com <chenshuai@huawei.com> | 2015-08-21 22:21:35 -0400 |
commit | 0597d98b2169ec834bcdb18ea6e11ba59120e529 (patch) | |
tree | d935a0839ff821ec60e242025e717160de73c81a /deploy/adapters/ansible/roles/odl_cluster/tasks/main_compute.yml | |
parent | fa0b0bebe9130e71f9b41659a233b61406eab884 (diff) |
Write ansible script for ODL Cluster
JIRA: COMPASS-12
Change-Id: I8d795124262564c99da4f738235d9af0221503fe
Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/odl_cluster/tasks/main_compute.yml')
-rw-r--r-- | deploy/adapters/ansible/roles/odl_cluster/tasks/main_compute.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/odl_cluster/tasks/main_compute.yml b/deploy/adapters/ansible/roles/odl_cluster/tasks/main_compute.yml new file mode 100644 index 00000000..39947661 --- /dev/null +++ b/deploy/adapters/ansible/roles/odl_cluster/tasks/main_compute.yml @@ -0,0 +1,16 @@ +--- +- name: shut down and disable Neutron's agent services + service: name=neutron-plugin-openvswitch-agent state=stopped + +- name: Stop the Open vSwitch service and clear existing OVSDB + shell: > + service openvswitch-switch stop ; + rm -rf /var/log/openvswitch/* ; + rm -rf /etc/openvswitch/conf.db ; + service openvswitch-switch start ; + +- name: Set OpenDaylight as the manager + command: su -s /bin/sh -c "ovs-vsctl set-manager tcp:{{odl_controller}}:6640;" + +- name: start and disable Neutron's agent services + service: name=neutron-plugin-openvswitch-agent state=started |