Puppet Class: yum::repo::sl6
- Defined in:
- manifests/repo/sl6.pp
Overview
Class: yum::repo::sl6
Base Scientific Linux 6 repos
Parameters:
- mirror_url
-
A clean URL to a mirror of ‘ftp.scientificlinux.org/linux/scientific/`. The paramater is interpolated with the known directory structure to create a the final baseurl parameter for each yumrepo so it must be “clean”, i.e., without a query string like `?key1=valA&key2=valB`. Additionally, it may not contain a trailing slash. Example: `mirror.example.com/pub/rpm/scientific` Default: `undef`
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 74 75 76 77 |
# File 'manifests/repo/sl6.pp', line 16
class yum::repo::sl6 (
$mirror_url = undef,
) {
if $mirror_url {
validate_re(
$mirror_url,
'^(?:https?|ftp):\/\/[\da-zA-Z-][\da-zA-Z\.-]*\.[a-zA-Z]{2,6}\.?(?:\:[0-9]{1,5})?(?:\/[\w~-]*)*$',
'$mirror must be a Clean URL with no query-string, a fully-qualified hostname and no trailing slash.'
)
}
$baseurl_sl6x = $mirror_url ? {
undef => undef,
default => "${mirror_url}/6x/\$basearch/os/",
}
$baseurl_sl6x_security = $mirror_url ? {
undef => undef,
default => "${mirror_url}/6x/\$basearch/updates/security/",
}
$baseurl_sl6x_fastbugs = $mirror_url ? {
undef => undef,
default => "${mirror_url}/6x/\$basearch/updates/fastbugs/",
}
yum::managed_yumrepo { 'sl6x':
descr => 'Scientific Linux 6x - $basearch',
baseurl => $baseurl_sl6x,
mirrorlist => 'http://ftp.scientificlinux.org/linux/scientific/mirrorlist/sl-base-6x.txt',
failovermethod => 'priority',
enabled => 1,
gpgcheck => 1,
gpgkey => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson',
gpgkey_source => 'puppet:///modules/yum/rpm-gpg/RPM-GPG-KEY-sl',
priority => 2,
}
yum::managed_yumrepo { 'sl6x-security':
descr => 'Scientific Linux 6x - $basearch - security updates',
baseurl => $baseurl_sl6x_security,
mirrorlist => 'http://ftp.scientificlinux.org/linux/scientific/mirrorlist/sl-security-6x.txt',
failovermethod => 'priority',
enabled => 1,
gpgcheck => 1,
gpgkey => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson',
priority => 2,
}
yum::managed_yumrepo { 'sl6x-fastbugs':
descr => 'Scientific Linux 6x - $basearch - fastbug updates',
baseurl => $baseurl_sl6x_fastbugs,
mirrorlist => 'http://ftp.scientificlinux.org/linux/scientific/mirrorlist/sl-fastbugs-6x.txt',
failovermethod => 'priority',
enabled => 0,
gpgcheck => 1,
gpgkey => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-sl file:///etc/pki/rpm-gpg/RPM-GPG-KEY-dawson',
priority => 2,
}
}
|