Fix: Install Sigul 1.1.1 for EL8 (CentOS Stream 8) 81/69981/1
authorAnil Belur <abelur@linuxfoundation.org>
Mon, 11 Apr 2022 03:00:47 +0000 (13:00 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Mon, 11 Apr 2022 03:07:54 +0000 (13:07 +1000)
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 <abelur@linuxfoundation.org>
provision/install-base-pkgs-RedHat.yaml

index 58eeb1f..83970b7 100644 (file)
     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
   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