Install OpenVSwitch 2.6.1 into '/opt/ovs' 20/81920/1
authorAnil Belur <abelur@linuxfoundation.org>
Tue, 7 May 2019 02:07:34 +0000 (12:07 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Tue, 7 May 2019 02:07:34 +0000 (12:07 +1000)
The source files are required by Netvirt CSIT tests
installing them into '/tmp' removes the src files.

Change-Id: I15fd77eb0ec232052b5bf9a04a24b8d618c54ccc
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
packer/provision/mininet-ovs-2.6.yaml

index 17ff4283f57dbe386c66f7509f14e1a899e1ed7a..5e149c8a2a6d979c5344b424491ebceffcf3fc28 100644 (file)
           become: true
         - name: Create OVS root
           file:
-            path: /tmp/ovs
+            path: /opt/ovs
             state: directory
             mode: 0755
+          become: true
         - name: 'Fetch OpenVSwitch {{ovs_version}} to /tmp'
           get_url:
             url: 'http://openvswitch.org/releases/openvswitch-2.6.1.tar.gz'
         - name: 'Unarchive OpenVSwitch {{ovs_version}}'
           unarchive:
             src: '/tmp/openvswitch-{{ovs_version}}.tar.gz'
-            dest: /tmp/ovs
+            dest: /opt/ovs
             remote_src: true
+          become: true
         - name: 'Build OpenVSwitch {{ovs_version}}'
           shell: DEB_BUILD_OPTIONS='parallel=8 nocheck' fakeroot debian/rules binary
           args:
-            chdir: '/tmp/ovs/openvswitch-{{ovs_version}}'
+            chdir: '/opt/ovs/openvswitch-{{ovs_version}}'
+          become: true
         - name: 'Install OpenVSwitch {{ovs_version}}'
           apt: 'deb={{item}}'
           with_items:
-            - /tmp/ovs/openvswitch-common_2.6.1-1_amd64.deb
-            - /tmp/ovs/openvswitch-switch_2.6.1-1_amd64.deb
-            - /tmp/ovs/python-openvswitch_2.6.1-1_all.deb
-            - /tmp/ovs/openvswitch-vtep_2.6.1-1_amd64.deb
+            - /opt/ovs/openvswitch-common_2.6.1-1_amd64.deb
+            - /opt/ovs/openvswitch-switch_2.6.1-1_amd64.deb
+            - /opt/ovs/python-openvswitch_2.6.1-1_all.deb
+            - /opt/ovs/openvswitch-vtep_2.6.1-1_amd64.deb
           become: true
         - name: Enable openvswitch-switch service
           systemd: