From 090e8ea922b1ac5e8e5516b3886d841d40401317 Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Fri, 12 Aug 2022 19:27:03 +1000 Subject: [PATCH 1/1] CI: Fix robot images to build with CentOS7/8 Issue-ID: LF-JIRA RELENG-4365 Signed-off-by: Anil Belur Change-Id: Ib40b61526591303f3c0f0b2b19e513f22817c1f0 --- packer/provision/robot.yaml | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/packer/provision/robot.yaml b/packer/provision/robot.yaml index eb76e7b2a..8eb8b1887 100644 --- a/packer/provision/robot.yaml +++ b/packer/provision/robot.yaml @@ -9,7 +9,7 @@ - include_role: name=lfit.system-update tasks: - - name: Install robot dependencies + - name: Install robot dependencies on CentOS 7 yum: name: - postgresql-devel @@ -19,6 +19,21 @@ - python36-pip state: present become: true + when: + - ansible_facts['distribution_major_version'] is version('8', '<') + + - name: Install robot dependencies on CentOS 8 + yum: + name: + - postgresql-devel + - python3-docker + - python3-matplotlib + - python3-netaddr + - python38-pip + state: present + become: true + when: + - ansible_facts['distribution_major_version'] is version('8', '>=') - name: Install dlux dependencies block: @@ -39,10 +54,29 @@ - libpcap-devel - libxml2-devel - libxslt-devel + state: present + become: true + + - name: Install lispflowmapping dependencies for CentOS 7 + yum: + name: - python-docker-py - python-netaddr state: present become: true + when: + - ansible_facts['distribution_major_version'] is version('8', '<') + + - name: Install lispflowmapping dependencies for CentOS 8 + yum: + name: + - python3-docker + - python3-netaddr + state: present + become: true + when: + - ansible_facts['distribution_major_version'] is version('8', '>=') + - name: Install udpreplay block: - name: Fetch udpreplay git repo -- 2.36.6