2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
# File 'manifests/params.pp', line 2
class epel::params {
# Setting to 'absent' will fall back to the yum.conf
# Setting proxy here will be the default for all repos.
#
# If you wish to set a proxy for an individual set of repos,
# you can declare $proxy in that class, and should scope to
# 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 {
$failovermethod = 'absent'
} else {
$failovermethod = 'priority'
}
$epel_mirrorlist = "https://mirrors.fedoraproject.org/metalink?repo=epel-${os_maj_release}&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_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_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_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_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_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"
}
|