From: Anil Belur Date: Tue, 7 May 2019 02:07:34 +0000 (+1000) Subject: Install OpenVSwitch 2.6.1 into '/opt/ovs' X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=releng%2Fbuilder.git;a=commitdiff_plain;h=9e9a7be2f7c21ca4706d9ecbab7ce5c9dacb49e5 Install OpenVSwitch 2.6.1 into '/opt/ovs' 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 --- diff --git a/packer/provision/mininet-ovs-2.6.yaml b/packer/provision/mininet-ovs-2.6.yaml index 17ff4283f..5e149c8a2 100644 --- a/packer/provision/mininet-ovs-2.6.yaml +++ b/packer/provision/mininet-ovs-2.6.yaml @@ -34,9 +34,10 @@ 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' @@ -45,19 +46,21 @@ - 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: