diff options
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.yml | 32 |
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 |