Revision dce8dedd
Added by Dominic Cleal over 10 years ago
manifests/install.pp | ||
---|---|---|
}
|
||
}
|
||
|
||
$repo = $foreman::custom_repo ? {
|
||
true => [],
|
||
default => Foreman::Install::Repos['foreman'],
|
||
}
|
||
|
||
$osreleasemajor = regsubst($::operatingsystemrelease, '^(\d+)\..*$', '\1')
|
||
|
||
if $foreman::configure_epel_repo {
|
||
yumrepo { 'epel':
|
||
descr => "Extra Packages for Enterprise Linux ${osreleasemajor} - \$basearch",
|
||
mirrorlist => "https://mirrors.fedoraproject.org/metalink?repo=epel-${osreleasemajor}&arch=\$basearch",
|
||
baseurl => "http://download.fedoraproject.org/pub/epel/${osreleasemajor}/\$basearch",
|
||
enabled => 1,
|
||
gpgcheck => 1,
|
||
gpgkey => 'https://fedoraproject.org/static/0608B895.txt',
|
||
}
|
||
}
|
||
class { '::foreman::install::repos::extra': }
|
||
|
||
if $foreman::configure_scl_repo {
|
||
case $::operatingsystem {
|
||
CentOS: {
|
||
yumrepo { 'SCL':
|
||
descr => "CentOS Software Collections",
|
||
baseurl => "http://dev.centos.org/centos/${osreleasemajor}/SCL/\$basearch",
|
||
enabled => 1,
|
||
gpgcheck => 1,
|
||
gpgkey => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Testing-6',
|
||
}
|
||
}
|
||
Scientific: {
|
||
yumrepo { 'SCL':
|
||
descr => "Scientific Linux Software Collections",
|
||
baseurl => "http://ftp.scientificlinux.org/linux/scientific/${osreleasemajor}/\$basearch/external_products/softwarecollections/",
|
||
enabled => 1,
|
||
gpgcheck => 1,
|
||
}
|
||
}
|
||
default: {}
|
||
}
|
||
$repo = $foreman::custom_repo ? {
|
||
true => Class['foreman::install::repos::extra'],
|
||
default => [Class['foreman::install::repos::extra'], Foreman::Install::Repos['foreman']],
|
||
}
|
||
|
||
case $foreman::db_type {
|
Also available in: Unified diff
Restrict SCL/EPEL to appropriate OS, add package dependencies