Puppet Class: artifactory::repo::yum
- Defined in:
-
manifests/repo/yum.pp
Summary
Setup YUM repository on RedHat-based distributions
Overview
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'manifests/repo/yum.pp', line 3
class artifactory::repo::yum {
if $artifactory::manage_repo {
case $artifactory::edition {
'enterprise', 'pro': {
$_gpg = $artifactory::yum_gpgkey_pro
$_url = $artifactory::yum_baseurl_pro
}
default: {
$_gpg = $artifactory::yum_gpgkey
$_url = $artifactory::yum_baseurl
}
}
# Add the jfrog yum repo
yumrepo { $artifactory::yum_name:
baseurl => $_url,
descr => $artifactory::yum_name,
gpgcheck => 1,
enabled => 1,
gpgkey => $_gpg,
}
}
}
|