Commit 79542b3f authored by Michael Thomas's avatar Michael Thomas
Browse files

Update yum profiles to support both CentOS and Rocky EL8

parent 3bcd2234
---
# The target attribute is currently ignored. See https://tickets.puppetlabs.com/browse/MODULES-7422
ligoprofile::yum::repos:
BaseOS:
descr: 'CentOS Linux $releasever - $basearch'
baseurl: "%{lookup('ligoprofile::sitemirror')}/mirror/linux/centos/8/BaseOS/x86_64/os/"
mirrorlist: 'absent'
enabled: true
gpgcheck: true
gpgkey: "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial"
target: '/etc/yum.repos.d/CentOS-Base.repo'
AppStream:
descr: 'CentOS Linux $releasever - $basearch - AppStream'
baseurl: "%{lookup('ligoprofile::sitemirror')}/mirror/linux/centos/8/AppStream/x86_64/os/"
mirrorlist: 'absent'
enabled: true
gpgcheck: true
gpgkey: "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial"
target: '/etc/yum.repos.d/CentOS-AppStream.repo'
PowerTools:
descr: 'CentOS Linux $releasever - $basearch - PowerTools'
baseurl: "%{lookup('ligoprofile::sitemirror')}/mirror/linux/centos/8/PowerTools/x86_64/os/"
mirrorlist: 'absent'
enabled: true
gpgcheck: true
gpgkey: "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial"
target: '/etc/yum.repos.d/CentOS-PowerTools.repo'
centosplus:
descr: 'CentOS Linux $releasever - $basearch - centosplus'
baseurl: "%{lookup('ligoprofile::sitemirror')}/mirror/linux/centos/8/centosplus/x86_64/os/"
mirrorlist: 'absent'
enabled: false
gpgcheck: true
gpgkey: "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial"
target: '/etc/yum.repos.d/CentOS-centosplus.repo'
fasttrack:
descr: 'CentOS Linux $releasever - $basearch - fasttrack'
baseurl: "%{lookup('ligoprofile::sitemirror')}/mirror/linux/centos/8/fasttrack/x86_64/os/"
mirrorlist: 'absent'
enabled: false
gpgcheck: true
gpgkey: "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial"
target: '/etc/yum.repos.d/CentOS-fasttrack.repo'
HighAvailability:
descr: 'CentOS Linux $releasever - $basearch - HighAvailability'
baseurl: "%{lookup('ligoprofile::sitemirror')}/mirror/linux/centos/8/HighAvailability/x86_64/os/"
mirrorlist: 'absent'
enabled: false
gpgcheck: true
gpgkey: "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial"
target: '/etc/yum.repos.d/CentOS-HighAvailability.repo'
ligoprofile::yum::gpgkeys:
'/etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial':
ensure: 'present'
source: 'puppet://%{lookup("ligoprofile::puppetmaster")}/modules/ligoprofile/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Official'
ligoprofile::yum::managed_repos:
- 'BaseOS'
- 'AppStream'
- 'PowerTools'
- 'centosplus'
- 'fasttrack'
- 'HighAvailability'
......@@ -224,54 +224,6 @@ ligoprofile::yum::repos:
# gpgkey: 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7'
# gpgcheck: true
# target: '/etc/yum.repos.d/epel-testing-upstream.repo'
BaseOS:
descr: 'CentOS Linux $releasever - $basearch'
baseurl: "%{lookup('ligoprofile::sitemirror')}/mirror/linux/centos/8/BaseOS/x86_64/os/"
mirrorlist: 'absent'
enabled: true
gpgcheck: true
gpgkey: "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial"
target: '/etc/yum.repos.d/CentOS-Base.repo'
AppStream:
descr: 'CentOS Linux $releasever - $basearch - AppStream'
baseurl: "%{lookup('ligoprofile::sitemirror')}/mirror/linux/centos/8/AppStream/x86_64/os/"
mirrorlist: 'absent'
enabled: true
gpgcheck: true
gpgkey: "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial"
target: '/etc/yum.repos.d/CentOS-AppStream.repo'
PowerTools:
descr: 'CentOS Linux $releasever - $basearch - PowerTools'
baseurl: "%{lookup('ligoprofile::sitemirror')}/mirror/linux/centos/8/PowerTools/x86_64/os/"
mirrorlist: 'absent'
enabled: true
gpgcheck: true
gpgkey: "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial"
target: '/etc/yum.repos.d/CentOS-PowerTools.repo'
centosplus:
descr: 'CentOS Linux $releasever - $basearch - centosplus'
baseurl: "%{lookup('ligoprofile::sitemirror')}/mirror/linux/centos/8/centosplus/x86_64/os/"
mirrorlist: 'absent'
enabled: false
gpgcheck: true
gpgkey: "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial"
target: '/etc/yum.repos.d/CentOS-centosplus.repo'
fasttrack:
descr: 'CentOS Linux $releasever - $basearch - fasttrack'
baseurl: "%{lookup('ligoprofile::sitemirror')}/mirror/linux/centos/8/fasttrack/x86_64/os/"
mirrorlist: 'absent'
enabled: false
gpgcheck: true
gpgkey: "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial"
target: '/etc/yum.repos.d/CentOS-fasttrack.repo'
HighAvailability:
descr: 'CentOS Linux $releasever - $basearch - HighAvailability'
baseurl: "%{lookup('ligoprofile::sitemirror')}/mirror/linux/centos/8/HighAvailability/x86_64/os/"
mirrorlist: 'absent'
enabled: false
gpgcheck: true
gpgkey: "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial"
target: '/etc/yum.repos.d/CentOS-HighAvailability.repo'
grafana-upstream:
descr: 'Grafana data visualization service'
baseurl: 'https://packages.grafana.com/oss/rpm'
......@@ -281,25 +233,25 @@ ligoprofile::yum::repos:
sslverify: true
sslcacert: '/etc/pki/tls/certs/ca-bundle.crt'
ldas:
descr: 'DCS packages for CentOS $releasever - $basearch'
descr: 'DCS packages for EL $releasever - $basearch'
baseurl: "%{lookup('ligoprofile::sitemirror')}/llorepo/centos/8/ldas/$basearch/"
enabled: true
gpgcheck: false
target: '/etc/yum.repos.d/ldas.repo'
ldas-restricted:
descr: 'DCS restricted packages for CentOS $releasever - $basearch'
descr: 'DCS restricted packages for EL $releasever - $basearch'
baseurl: "%{lookup('ligoprofile::sitemirror')}/llorepo/centos/8/ldas-restricted/$basearch/"
enabled: true
gpgcheck: false
target: '/etc/yum.repos.d/ldas.repo'
ldas-testing:
descr: 'DCS testing packages for CentOS $releasever - $basearch'
descr: 'DCS testing packages for EL $releasever - $basearch'
baseurl: "%{lookup('ligoprofile::sitemirror')}/llorepo/centos/8/ldas-testing/$basearch/"
enabled: false
gpgcheck: false
target: '/etc/yum.repos.d/ldas.repo'
ldas-staging:
descr: 'DCS pre-testing packages for CentOS $releasever - $basearch'
descr: 'DCS pre-testing packages for EL $releasever - $basearch'
baseurl: "https://koji.ligo-la.caltech.edu/kojifiles/repos-dist/epel7-ldas-testing-candidate/latest/x86_64/"
enabled: false
gpgcheck: false
......@@ -693,9 +645,6 @@ ligoprofile::yum::gpgkeys:
'/etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org':
ensure: 'present'
source: 'puppet://%{lookup("ligoprofile::puppetmaster")}/modules/ligoprofile/etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org'
'/etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial':
ensure: 'present'
source: 'puppet://%{lookup("ligoprofile::puppetmaster")}/modules/ligoprofile/etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Official'
'/etc/pki/rpm-gpg/RPM-GPG-KEY-CEPH':
ensure: 'present'
source: 'puppet://%{lookup("ligoprofile::puppetmaster")}/modules/ligoprofile/etc/pki/rpm-gpg/RPM-GPG-KEY-CEPH'
......@@ -761,12 +710,6 @@ ligoprofile::yum::managed_repos:
# - 'epel-testing-upstream'
# - 'epel-testing-debuginfo-upstream'
# - 'epel-testing-source-upstream'
- 'BaseOS'
- 'AppStream'
- 'PowerTools'
- 'centosplus'
- 'fasttrack'
- 'HighAvailability'
- 'grafana-upstream'
- 'ldas'
- 'ldas-restricted'
......
---
# The target attribute is currently ignored. See https://tickets.puppetlabs.com/browse/MODULES-7422
ligoprofile::yum::repos:
baseos:
descr: 'Rocky Linux $releasever'
baseurl: "%{lookup('ligoprofile::sitemirror')}/mirror/linux/rocky/8/BaseOS/x86_64/os/"
mirrorlist: 'absent'
enabled: true
gpgcheck: true
gpgkey: "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial"
target: '/etc/yum.repos.d/Rocky-Base.repo'
devel:
descr: 'Rocky Linux $releasever - Devel WARNING! FOR BUILDROOT AND KOJI USE'
baseurl: "%{lookup('ligoprofile::sitemirror')}/mirror/linux/rocky/8/Devel/x86_64/os/"
mirrorlist: 'absent'
enabled: false
gpgcheck: true
gpgkey: "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial"
target: '/etc/yum.repos.d/Rocky-Devel.repo'
appstream:
descr: 'Rocky Linux $releasever - AppStream'
baseurl: "%{lookup('ligoprofile::sitemirror')}/mirror/linux/rocky/8/AppStream/x86_64/os/"
mirrorlist: 'absent'
enabled: true
gpgcheck: true
gpgkey: "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial"
target: '/etc/yum.repos.d/Rocky-AppStream.repo'
extras:
descr: 'Rocky Linux $releasever - Extras'
baseurl: "%{lookup('ligoprofile::sitemirror')}/mirror/linux/rocky/8/extras/x86_64/os/"
mirrorlist: 'absent'
enabled: false
gpgcheck: true
gpgkey: "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial"
target: '/etc/yum.repos.d/Rocky-Extras.repo'
powertools:
descr: 'Rocky Linux $releasever - PowerTools'
baseurl: "%{lookup('ligoprofile::sitemirror')}/mirror/linux/rocky/8/PowerTools/x86_64/os/"
mirrorlist: 'absent'
enabled: true
gpgcheck: true
gpgkey: "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial"
target: '/etc/yum.repos.d/Rocky-PowerTools.repo'
plus:
descr: 'Rocky Linux $releasever - Plus'
baseurl: "%{lookup('ligoprofile::sitemirror')}/mirror/linux/rocky/8/centosplus/x86_64/os/"
mirrorlist: 'absent'
enabled: false
gpgcheck: true
gpgkey: "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial"
target: '/etc/yum.repos.d/Rocky-Plus.repo'
ha:
descr: 'Rocky Linux $releasever - HighAvailability'
baseurl: "%{lookup('ligoprofile::sitemirror')}/mirror/linux/rocky/8/HighAvailability/x86_64/os/"
mirrorlist: 'absent'
enabled: false
gpgcheck: true
gpgkey: "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial"
target: '/etc/yum.repos.d/Rocky-HighAvailability.repo'
nfv:
descr: 'Rocky Linux $releasever - NFV'
baseurl: "%{lookup('ligoprofile::sitemirror')}/mirror/linux/rocky/8/nfv/x86_64/os/"
mirrorlist: 'absent'
enabled: false
gpgcheck: true
gpgkey: "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial"
target: '/etc/yum.repos.d/Rocky-NFV.repo'
resilient-storage:
descr: 'Rocky Linux $releasever - ResilientStorage'
baseurl: "%{lookup('ligoprofile::sitemirror')}/mirror/linux/rocky/8/ResilientStorage/x86_64/os/"
mirrorlist: 'absent'
enabled: false
gpgcheck: true
gpgkey: "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial"
target: '/etc/yum.repos.d/Rocky-ResilientStorage.repo'
ligoprofile::yum::gpgkeys:
'/etc/pki/rpm-gpg/RPM-GPG-KEY-rockyinfra':
ensure: 'present'
source: 'puppet://puppet/modules/ligoprofile/etc/pki/rpm-gpg/RPM-GPG-KEY-rockyinfra'
'/etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial':
ensure: 'present'
source: 'puppet://puppet/modules/ligoprofile/etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial'
'/etc/pki/rpm-gpg/RPM-GPG-KEY-rockytesting':
ensure: 'present'
source: 'puppet://puppet/modules/ligoprofile/etc/pki/rpm-gpg/RPM-GPG-KEY-rockytesting'
ligoprofile::yum::managed_repos:
- 'baseos'
- 'devel'
- 'appstream'
- 'extras'
- 'powertools'
- 'plus'
- 'ha'
- 'nfv'
- 'resilient-storage'
......@@ -77,14 +77,16 @@ class ligoprofile::yum::common (
mode => '0644',
content => "0 6 * * 2 root /usr/bin/yum -y -q clean metadata\n",
}
file {['/etc/yum.repos.d/sl7.repo',
'/etc/yum.repos.d/sl7-testing.repo',
'/etc/yum.repos.d/sl7-other.repo',
'/etc/yum.repos.d/sl7-rolling.repo',
'/etc/yum.repos.d/sl7-security.repo',
'/etc/yum.repos.d/sl7-fastbugs.repo',
'/etc/yum.repos.d/CentOS-Linux-AppStream.repo',
'/etc/yum.repos.d/sl7-fastbugs.repo', ]: ensure => 'absent', } ->
Class['yum']
if $facts['os']['name'] == 'Rocky' and $facts['os']['release']['major'] == '8' {
file {['/etc/yum.repos.d/CentOS-Linux-AppStream.repo',
'/etc/yum.repos.d/CentOS-Linux-BaseOS.repo',
'/etc/yum.repos.d/CentOS-Linux-ContinuousRelease.repo',
'/etc/yum.repos.d/CentOS-Linux-Debuginfo.repo',
......@@ -95,7 +97,35 @@ class ligoprofile::yum::common (
'/etc/yum.repos.d/CentOS-Linux-Media.repo',
'/etc/yum.repos.d/CentOS-Linux-Plus.repo',
'/etc/yum.repos.d/CentOS-Linux-PowerTools.repo',
'/etc/yum.repos.d/CentOS-Linux-Sources.repo', ]: ensure => 'absent', } ->
'/etc/yum.repos.d/CentOS-Linux-Sources.repo',
'/etc/yum.repos.d/CentOS-AppStream.repo',
'/etc/yum.repos.d/CentOS-BaseOS.repo',
'/etc/yum.repos.d/CentOS-ContinuousRelease.repo',
'/etc/yum.repos.d/CentOS-Debuginfo.repo',
'/etc/yum.repos.d/CentOS-Devel.repo',
'/etc/yum.repos.d/CentOS-Extras.repo',
'/etc/yum.repos.d/CentOS-FastTrack.repo',
'/etc/yum.repos.d/CentOS-HighAvailability.repo',
'/etc/yum.repos.d/CentOS-Media.repo',
'/etc/yum.repos.d/CentOS-Plus.repo',
'/etc/yum.repos.d/CentOS-PowerTools.repo',
'/etc/yum.repos.d/CentOS-Sources.repo',
'/etc/yum.repos.d/AppStream.repo',
'/etc/yum.repos.d/BaseOS.repo',
'/etc/yum.repos.d/ContinuousRelease.repo',
'/etc/yum.repos.d/Debuginfo.repo',
'/etc/yum.repos.d/Devel.repo',
'/etc/yum.repos.d/Extras.repo',
'/etc/yum.repos.d/FastTrack.repo',
'/etc/yum.repos.d/fasttrack.repo',
'/etc/yum.repos.d/HighAvailability.repo',
'/etc/yum.repos.d/Media.repo',
'/etc/yum.repos.d/centosplus.repo',
'/etc/yum.repos.d/Plus.repo',
'/etc/yum.repos.d/PowerTools.repo',
'/etc/yum.repos.d/Sources.repo', ]: ensure => 'absent', } ->
Class['yum']
}
class {'::yum':
config_options => $config_options,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment