Merge "Update cloud image CentOS7 robot x86_64"
[releng/builder.git] / packer / provision / mininet-ovs-2.8.yaml
index 441a9d1b1b4cc8224c05f9cc732040cd2afd847b..88c906578e4693a9490949bc5c323e2d56d681c0 100644 (file)
     - include_role: name=lfit.system-update
 
   tasks:
-    - name: 'Install OpenVSwitch {{ovs_version}}'
+    - name: "Install OpenVSwitch {{ovs_version}}"
       block:
         - name: Install OpenVSwitch dependencies
-          apt: 'name={{item}} state=present'
-          with_items:
-            - autoconf
-            - automake
-            - bzip2
-            - debhelper
-            - dh-autoreconf
-            - libssl-dev
-            - openssl
-            - pkg-config
-            - procps
-            - python-all
-            - python-qt4
-            - python-twisted-conch
-            - python-zopeinterface
+          apt:
+            name:
+              - autoconf
+              - automake
+              - bzip2
+              - debhelper
+              - dh-autoreconf
+              - libssl-dev
+              - openssl
+              - pkg-config
+              - procps
+              - python-all
+              - python-qt4
+              - python-twisted-conch
+              - python-zopeinterface
+            state: present
           become: true
-        - name: 'Fetch OpenVSwitch {{ovs_version}}'
+        - name: "Fetch OpenVSwitch {{ovs_version}}"
           get_url:
-            url: 'http://openvswitch.org/releases/openvswitch-{{ovs_version}}.tar.gz'
-            dest: '/tmp/openvswitch-{{ovs_version}}.tar.gz'
-            checksum: '{{ovs_checksum}}'
+            url: "http://openvswitch.org/releases/openvswitch-{{ovs_version}}.tar.gz"
+            dest: "/tmp/openvswitch-{{ovs_version}}.tar.gz"
+            checksum: "{{ovs_checksum}}"
         - name: Create /tmp/ovs directory
           file:
             path: /tmp/ovs
             state: directory
             mode: 0755
-        - name: 'Unarchive OpenVSwitch {{ovs_version}}'
+        - name: "Unarchive OpenVSwitch {{ovs_version}}"
           unarchive:
-            src: '/tmp/openvswitch-{{ovs_version}}.tar.gz'
+            src: "/tmp/openvswitch-{{ovs_version}}.tar.gz"
             dest: /tmp/ovs
             remote_src: true
-        - name: 'Build OpenVSwitch {{ovs_version}}'
+        - name: "Build OpenVSwitch {{ovs_version}}"
           shell: DEB_BUILD_OPTIONS='parallel=8 nocheck' fakeroot debian/rules binary
           args:
-            chdir: '/tmp/ovs/openvswitch-{{ovs_version}}'
-        - name: 'Install OpenVSwitch {{ovs_version}}'
-          apt: 'deb={{item}}'
+            chdir: "/tmp/ovs/openvswitch-{{ovs_version}}"
+        - name: "Install OpenVSwitch {{ovs_version}}"
+          apt: "deb={{item}}"
           with_items:
             - /tmp/ovs/libopenvswitch_2.8.1-1_amd64.deb
             - /tmp/ovs/openvswitch-common_2.8.1-1_amd64.deb
     - name: Install mtcbench
       block:
         - name: Install mtcbench dependencies
-          apt: 'name={{item}} state=present'
-          with_items:
-            - autoconf
-            - automake
-            - build-essential
-            - libconfig-dev
-            - libffi-dev
-            - libpcap-dev
-            - libsnmp-dev
-            - libtool
-            - libssl-doc
-            - make
-            - pkg-config
-            - snmp
-            - snmpd
+          apt:
+            name:
+              - autoconf
+              - automake
+              - build-essential
+              - libconfig-dev
+              - libffi-dev
+              - libpcap-dev
+              - libsnmp-dev
+              - libtool
+              - libssl-doc
+              - make
+              - pkg-config
+              - snmp
+              - snmpd
+            state: present
           become: true
         - name: Fetch mtcbench git repo
           git:
             dest: /usr/local/bin/cbench
             mode: 0755
             owner: root
-            remote_src: yes
+            remote_src: true
           become: true
 
     - name: Install exabgp
       apt: name=vlan state=present
       become: true
 
+    - name: Install CSIT dependencies
+      apt:
+        name:
+          - git-review
+          - python-chardet
+          - python-ndg-httpsclient
+          - python-requests
+          - python-urllib3
+        state: present
+      become: true
+
   post_tasks:
     - name: System Reseal
       script: ../common-packer/provision/system-reseal.sh