Revision 00e1cb9a
Added by Jason Montleon over 10 years ago
manifests/init.pp | ||
---|---|---|
#
|
||
# $repo:: This can be stable, rc, or nightly
|
||
#
|
||
# $configure_epel_repo:: If disabled the EPEL repo will not be configured on RedHat family systems.
|
||
# type:boolean
|
||
#
|
||
# $configure_scl_repo:: If disabled the the SCL repo will not be configured on Red Hat clone systems.
|
||
# (Currently only installs repos for CentOS and Scientific)
|
||
# type:boolean
|
||
#
|
||
# $selinux:: when undef, foreman-selinux will be installed if SELinux is enabled
|
||
# setting to false/true will override this check (e.g. set to false on 1.1)
|
||
# type:boolean
|
||
... | ... | |
$ssl = $foreman::params::ssl,
|
||
$custom_repo = $foreman::params::custom_repo,
|
||
$repo = $foreman::params::repo,
|
||
$configure_epel_repo = $foreman::params::configure_epel_repo,
|
||
$configure_scl_repo = $foreman::params::configure_scl_repo,
|
||
$selinux = $foreman::params::selinux,
|
||
$gpgcheck = $foreman::params::gpgcheck,
|
||
$version = $foreman::params::version,
|
manifests/install.pp | ||
---|---|---|
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',
|
||
}
|
||
}
|
||
|
||
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: {}
|
||
}
|
||
}
|
||
|
||
case $foreman::db_type {
|
||
sqlite: {
|
||
case $::operatingsystem {
|
manifests/params.pp | ||
---|---|---|
# Choose whether you want to enable locations and organizations.
|
||
$locations_enabled = false
|
||
$organizations_enabled = false
|
||
$configure_epel_repo = true
|
||
$configure_scl_repo = true
|
||
|
||
# Advance configurations - no need to change anything here by default
|
||
# if set to true, no repo will be added by this module, letting you to
|
Also available in: Unified diff
add scl and epel repo configuration