summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFran├žois Charlier <francois.charlier@redhat.com>2019-11-07 10:54:35 +0100
committerFran├žois Charlier <francois.charlier@redhat.com>2019-11-16 16:26:36 +0100
commitb9f920eae7141ab087d5f4929999228cfe11bf39 (patch)
tree0425c33744780de42b26ead433cf0ee33bd78c90
parent9c41dfc2ddf4fe899386212fc92b3fc8e66fc890 (diff)
Add rhsm cert repo for RHEL-8
Change-Id: Iab097a18fb8672aff6dc5e4fdda3aee624ea3c39
-rw-r--r--defaults/main.yml7
-rw-r--r--tasks/prepare.yml4
2 files changed, 8 insertions, 3 deletions
diff --git a/defaults/main.yml b/defaults/main.yml
index dd3bd17..057e041 100644
--- a/defaults/main.yml
+++ b/defaults/main.yml
@@ -118,8 +118,13 @@ openstack_certification_supported_apis_and_extensions:
# openstack_certification_uc_tempest_conf: /home/stack/tempest/etc/tempest.conf
openstack_certification_enable_rhsm_repo: true
+openstack_certification_rhsm_repos_per_release:
+ "7": "rhel-7-server-cert-rpms"
+ "8": "cert-1-for-rhel-8-{{ ansible_architecture }}-rpms"
+openstack_certification_rhsm_repo_name: "{{ openstack_certification_rhsm_repos_per_release[ansible_distribution_major_version] }}"
openstack_certification_install_rpms: >-
- [ 'redhat-certification',
+ [
+ {% if ansible_distribution_major_version == "7" %} 'redhat-certification', {% endif %}
{% if 'baremetal' in openstack_certification_tags + openstack_certification_tests + openstack_certification_programs %}
'redhat-certification-baremetal' ]
{% else %}
diff --git a/tasks/prepare.yml b/tasks/prepare.yml
index f95170f..31ccc99 100644
--- a/tasks/prepare.yml
+++ b/tasks/prepare.yml
@@ -1,8 +1,8 @@
---
-- name: Subscribe to rhel-7-server-cert-rpms
+- name: Subscribe to the rhsm certification repository
become: true
rhsm_repository:
- name: rhel-7-server-cert-rpms
+ name: "{{ openstack_certification_rhsm_repo_name }}"
state: enabled
when: openstack_certification_enable_rhsm_repo