Skip to content

Commit

Permalink
Include module_hotfixes when using staging repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
ehelms committed Apr 29, 2020
1 parent 86d6b7e commit 0f03beb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 0 additions & 1 deletion ansible.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[defaults]
callback_whitelist = profile_tasks,profile_roles
stdout_callback = yaml
display_skipped_hosts = false
show_per_host_start = true
Expand Down
8 changes: 8 additions & 0 deletions roles/foreman_repositories/tasks/redhat_staging_repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,20 @@
tags:
- packages

- name: 'Create module_hotfixes config file'
copy:
dest: /etc/yum/foreman.conf
content: |
module_hotfixes=1
- name: 'Foreman {{ foreman_repositories_version }} Koji repository'
yum_repository:
name: foreman-koji
description: "Foreman {{ foreman_repositories_version }} Koji Repository"
baseurl: "http://koji.katello.org/releases/yum/foreman-{{ foreman_repositories_version }}/RHEL/{{ ansible_distribution_major_version }}/x86_64/"
priority: 1
gpgcheck: 0
include: /etc/yum/foreman.conf
tags:
- packages

Expand All @@ -24,6 +31,7 @@
baseurl: "http://koji.katello.org/releases/yum/foreman-plugins-{{ foreman_repositories_version }}/RHEL/{{ ansible_distribution_major_version }}/x86_64/"
priority: 1
gpgcheck: 0
include: /etc/yum/foreman.conf
tags:
- packages

Expand Down
3 changes: 3 additions & 0 deletions roles/katello_repositories/tasks/staging_repos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
baseurl: "http://koji.katello.org/releases/yum/katello-{{ katello_repositories_version }}/katello/el{{ ansible_distribution_major_version }}/x86_64/"
priority: 1
gpgcheck: 0
include: /etc/yum/foreman.conf

- name: 'Candlepin Koji repository'
yum_repository:
Expand All @@ -19,6 +20,7 @@
baseurl: "http://koji.katello.org/releases/yum/katello-{{ katello_repositories_version }}/candlepin/el{{ ansible_distribution_major_version }}/x86_64/"
priority: 1
gpgcheck: 0
include: /etc/yum/foreman.conf

- name: 'Add Pulp {{ katello_repositories_pulp_version }} Stable repository'
yum_repository:
Expand Down Expand Up @@ -49,6 +51,7 @@
baseurl: "http://koji.katello.org/releases/yum/katello-{{ katello_repositories_version }}/pulpcore/el{{ ansible_distribution_major_version }}/x86_64/"
gpgcheck: no
enabled: yes
include: /etc/yum/foreman.conf
when:
- katello_repositories_version == "nightly" or katello_repositories_version is version('3.15', '>=')

Expand Down

0 comments on commit 0f03beb

Please sign in to comment.