Skip to content

Commit

Permalink
drop support for EL7
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt committed Sep 17, 2024
1 parent b8d7d8a commit 44c3204
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 37 deletions.
34 changes: 13 additions & 21 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,66 +8,58 @@
# the most specific declaration of proxy.
$proxy = 'absent'

if $facts['os']['name'] == 'Amazon' and $facts['os']['release']['major'] == '2' {
# Amazon Linux 2 is equivalent of Enterprise Linux 7 so we use that version for epel
# https://aws.amazon.com/premiumsupport/knowledge-center/ec2-enable-epel/
$os_maj_release = '7'
} else {
$os_maj_release = $facts['os']['release']['major']
}

if versioncmp($os_maj_release,'8') >= 0 {
if versioncmp($facts['os']['release']['major'],'8') >= 0 {
$failovermethod = 'absent'
} else {
$failovermethod = 'priority'
}

$epel_mirrorlist = "https://mirrors.fedoraproject.org/metalink?repo=epel-${os_maj_release}&arch=\$basearch"
$epel_mirrorlist = "https://mirrors.fedoraproject.org/metalink?repo=epel-${facts['os']['release']['major']}&arch=\$basearch"
$epel_baseurl = 'absent'
$epel_failovermethod = $failovermethod
$epel_proxy = $proxy
$epel_enabled = '1'
$epel_gpgcheck = '1'
$epel_repo_gpgcheck = '0'
$epel_metalink = "https://mirrors.fedoraproject.org/metalink?repo=epel-${os_maj_release}&arch=\$basearch"
$epel_testing_mirrorlist = "https://mirrors.fedoraproject.org/metalink?repo=testing-epel${os_maj_release}&arch=\$basearch"
$epel_metalink = "https://mirrors.fedoraproject.org/metalink?repo=epel-${facts['os']['release']['major']}&arch=\$basearch"
$epel_testing_mirrorlist = "https://mirrors.fedoraproject.org/metalink?repo=testing-epel${facts['os']['release']['major']}&arch=\$basearch"
$epel_testing_baseurl = 'absent'
$epel_testing_failovermethod = $failovermethod
$epel_testing_proxy = $proxy
$epel_testing_enabled = '0'
$epel_testing_gpgcheck = '1'
$epel_testing_repo_gpgcheck = '0'
$epel_testing_metalink = "https://mirrors.fedoraproject.org/metalink?repo=testing-epel${os_maj_release}&arch=\$basearch"
$epel_source_mirrorlist = "https://mirrors.fedoraproject.org/metalink?repo=epel-source-${os_maj_release}&arch=\$basearch"
$epel_testing_metalink = "https://mirrors.fedoraproject.org/metalink?repo=testing-epel${facts['os']['release']['major']}&arch=\$basearch"
$epel_source_mirrorlist = "https://mirrors.fedoraproject.org/metalink?repo=epel-source-${facts['os']['release']['major']}&arch=\$basearch"
$epel_source_baseurl = 'absent'
$epel_source_failovermethod = $failovermethod
$epel_source_proxy = $proxy
$epel_source_enabled = '0'
$epel_source_gpgcheck = '1'
$epel_source_repo_gpgcheck = '0'
$epel_source_metalink = "https://mirrors.fedoraproject.org/metalink?repo=epel-source-${os_maj_release}&arch=\$basearch"
$epel_debuginfo_mirrorlist = "https://mirrors.fedoraproject.org/metalink?repo=epel-debug-${os_maj_release}&arch=\$basearch"
$epel_source_metalink = "https://mirrors.fedoraproject.org/metalink?repo=epel-source-${facts['os']['release']['major']}&arch=\$basearch"
$epel_debuginfo_mirrorlist = "https://mirrors.fedoraproject.org/metalink?repo=epel-debug-${facts['os']['release']['major']}&arch=\$basearch"
$epel_debuginfo_baseurl = 'absent'
$epel_debuginfo_failovermethod = $failovermethod
$epel_debuginfo_proxy = $proxy
$epel_debuginfo_enabled = '0'
$epel_debuginfo_gpgcheck = '1'
$epel_debuginfo_repo_gpgcheck = '0'
$epel_debuginfo_metalink = "https://mirrors.fedoraproject.org/metalink?repo=epel-debug-${os_maj_release}&arch=\$basearch"
$epel_testing_source_mirrorlist = "https://mirrors.fedoraproject.org/metalink?repo=testing-source-epel${os_maj_release}&arch=\$basearch"
$epel_debuginfo_metalink = "https://mirrors.fedoraproject.org/metalink?repo=epel-debug-${facts['os']['release']['major']}&arch=\$basearch"
$epel_testing_source_mirrorlist = "https://mirrors.fedoraproject.org/metalink?repo=testing-source-epel${facts['os']['release']['major']}&arch=\$basearch"
$epel_testing_source_baseurl = 'absent'
$epel_testing_source_failovermethod = $failovermethod
$epel_testing_source_proxy = $proxy
$epel_testing_source_enabled = '0'
$epel_testing_source_gpgcheck = '1'
$epel_testing_source_repo_gpgcheck = '0'
$epel_testing_source_metalink = "https://mirrors.fedoraproject.org/metalink?repo=testing-source-epel${os_maj_release}&arch=\$basearch"
$epel_testing_debuginfo_mirrorlist = "https://mirrors.fedoraproject.org/metalink?repo=testing-debug-epel${os_maj_release}&arch=\$basearch"
$epel_testing_source_metalink = "https://mirrors.fedoraproject.org/metalink?repo=testing-source-epel${facts['os']['release']['major']}&arch=\$basearch"
$epel_testing_debuginfo_mirrorlist = "https://mirrors.fedoraproject.org/metalink?repo=testing-debug-epel${facts['os']['release']['major']}&arch=\$basearch"
$epel_testing_debuginfo_baseurl = 'absent'
$epel_testing_debuginfo_failovermethod = $failovermethod
$epel_testing_debuginfo_proxy = $proxy
$epel_testing_debuginfo_enabled = '0'
$epel_testing_debuginfo_gpgcheck = '1'
$epel_testing_debuginfo_repo_gpgcheck = '0'
$epel_testing_debuginfo_metalink = "https://mirrors.fedoraproject.org/metalink?repo=testing-debug-epel${os_maj_release}&arch=\$basearch"
$epel_testing_debuginfo_metalink = "https://mirrors.fedoraproject.org/metalink?repo=testing-debug-epel${facts['os']['release']['major']}&arch=\$basearch"
}
16 changes: 0 additions & 16 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,10 @@
{
"operatingsystem": "RedHat",
"operatingsystemrelease": [
"7",
"8",
"9"
]
},
{
"operatingsystem": "CentOS",
"operatingsystemrelease": [
"7",
"8",
"9"
]
},
{
"operatingsystem": "Scientific",
"operatingsystemrelease": [
"7"
]
},
{
"operatingsystem": "AlmaLinux",
"operatingsystemrelease": [
Expand All @@ -47,7 +32,6 @@
{
"operatingsystem": "OracleLinux",
"operatingsystemrelease": [
"7",
"8",
"9"
]
Expand Down

0 comments on commit 44c3204

Please sign in to comment.