From: Anil Belur Date: Mon, 11 Apr 2022 03:00:47 +0000 (+1000) Subject: Fix: Install Sigul 1.1.1 for EL8 (CentOS Stream 8) X-Git-Tag: v0.10.2~5 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=4f1cbe1829ee56317c6bd59033635390c5e8ff9c;p=releng%2Fcommon-packer.git Fix: Install Sigul 1.1.1 for EL8 (CentOS Stream 8) Sigul requires python3-nss that is only available through dnf module repo (pki-{core,deps}). These additional repo need to be enabled for the Sigul to pull in the required dependencies. Note: `dnf module install|enable` is available through Ansible playbooks, so use the command module instead. Issue-ID: LF-JIRA IT-23826 Change-Id: Iff194240fc417ae92a2ea6caf0511c85cc973b41 Signed-off-by: Anil Belur --- diff --git a/provision/install-base-pkgs-RedHat.yaml b/provision/install-base-pkgs-RedHat.yaml index 58eeb1f..83970b7 100644 --- a/provision/install-base-pkgs-RedHat.yaml +++ b/provision/install-base-pkgs-RedHat.yaml @@ -68,7 +68,24 @@ state: latest become: true -- name: Install sigul client +# Note: Ansible dnf module does not support modules install,enable. Once this +# is supported in the new version update the code to use dnf module through +# Ansible. +- name: Enable CentOS stream 8 dependent modules + block: + - name: Enable pki-core + command: + cmd: dnf module enable pki-core -y + warn: no + become: true + - name: Enable pki-deps + command: + cmd: dnf module enable pki-deps -y + warn: no + become: true + when: ansible_os_family == 'RedHat' and ansible_facts['distribution_major_version'] is version('8', '>=') + +- name: Install sigul client for EL 7 yum: name: - https://kojipkgs.fedoraproject.org/repos-dist/epel7-infra/latest/x86_64/Packages/s/sigul-0.207-1.el7.x86_64.rpm @@ -77,6 +94,15 @@ when: - ansible_facts['distribution_major_version'] is version('8', '<') +- name: Install sigul client for EL 8 (Streams) + yum: + name: + - https://kojipkgs.fedoraproject.org/repos-dist/epel8-infra/latest/x86_64/Packages/s/sigul-1.1-1.el8.infra.x86_64.rpm + state: latest + become: true + when: + - ansible_facts['distribution_major_version'] is version('8', '>=') + - name: Swap to git224 block: - name: Install yum-plugin-replace