aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/odl_cluster/tasks/openvswitch.yml
diff options
context:
space:
mode:
authorchenshuai@huawei.com <chenshuai@huawei.com>2015-09-09 05:24:11 -0400
committerchenshuai@huawei.com <chenshuai@huawei.com>2015-09-09 05:30:00 -0400
commit860506c03cf20ea27121a2031a3d81d0170b1f54 (patch)
tree7c25749337ac5b5ee20b602b4ffeb8572f136da3 /deploy/adapters/ansible/roles/odl_cluster/tasks/openvswitch.yml
parentcf87d3067a63cb8be315a3addfd9c27d86be3b5a (diff)
Support OpenDayLight Lithium deployment
JIRA: COMPASS-35 Change-Id: I54763234ff4d708ae97e553372dd601fe9ea6fd4 Signed-off-by: chenshuai@huawei.com <chenshuai@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/odl_cluster/tasks/openvswitch.yml')
-rwxr-xr-x[-rw-r--r--]deploy/adapters/ansible/roles/odl_cluster/tasks/openvswitch.yml32
1 files changed, 23 insertions, 9 deletions
diff --git a/deploy/adapters/ansible/roles/odl_cluster/tasks/openvswitch.yml b/deploy/adapters/ansible/roles/odl_cluster/tasks/openvswitch.yml
index e59ca37e..33ab6841 100644..100755
--- a/deploy/adapters/ansible/roles/odl_cluster/tasks/openvswitch.yml
+++ b/deploy/adapters/ansible/roles/odl_cluster/tasks/openvswitch.yml
@@ -1,16 +1,25 @@
---
-- name: Install Crudini
- apt: name={{ item }} state=present
- with_items:
- - crudini
+#- name: Install Crudini
+# apt: name={{ item }} state=present
+# with_items:
+# - crudini
+
+- name: install compute packages
+ action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
+ with_items: compute_packages | union(compute_packages_noarch)
+
+- name: Adjust Service Daemon
+ shell: >
+ sed -i '/neutron-plugin-openvswitch-agent/d' /opt/service ;
+ echo opendaylight >> /opt/service ;
- name: shut down and disable Neutron's openvswitch agent services
service: name=neutron-plugin-openvswitch-agent state=stopped
-- name: remove Neutron's openvswitch agent services
- shell: >
- update-rc.d neutron-plugin-openvswitch-agent remove
+#- name: remove Neutron's openvswitch agent services
+# shell: >
+# update-rc.d neutron-plugin-openvswitch-agent remove
#- name: Stop the Open vSwitch service and clear existing OVSDB
# shell: >
@@ -22,14 +31,19 @@
- name: Set OpenDaylight as the manager
command: su -s /bin/sh -c "ovs-vsctl set-manager tcp:{{ HA_VIP }}:6640;"
-- name: start and disable Neutron's agent services
- service: name=neutron-plugin-openvswitch-agent state=started
+#- name: start and disable Neutron's agent services
+# service: name=neutron-plugin-openvswitch-agent state=started
- name: Configure Neutron1
shell: >
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 mechanism_drivers opendaylight;
crudini --set /etc/neutron/plugins/ml2/ml2_conf.ini ml2 tenant_network_types vlan;
+#- name: Adjust Service Daemon
+# shell: >
+# sed -i '/neutron-plugin-openvswitch-agent/d' /opt/service ;
+# echo opendaylight >> /opt/service ;
+
- name: Create ML2 Configuration File
template:
src: ml2_conf.sh