Revision d03a4a1e
Added by Ewoud Kohl van Wijngaarden about 9 years ago
manifests/install/repos.pp | ||
---|---|---|
$repo = stable,
|
||
$gpgcheck = true
|
||
) {
|
||
include foreman::params
|
||
include ::foreman::params
|
||
|
||
case $::osfamily {
|
||
'RedHat': {
|
||
foreman::install::repos::yum {$name:
|
||
::foreman::install::repos::yum {$name:
|
||
repo => $repo,
|
||
yumcode => $foreman::params::yumcode,
|
||
gpgcheck => $gpgcheck,
|
||
}
|
||
}
|
||
'Debian': {
|
||
foreman::install::repos::apt {$name:
|
||
::foreman::install::repos::apt {$name:
|
||
repo => $repo,
|
||
}
|
||
}
|
||
'Linux': {
|
||
case $::operatingsystem {
|
||
'Amazon': {
|
||
foreman::install::repos::yum {$name:
|
||
::foreman::install::repos::yum {$name:
|
||
repo => $repo,
|
||
yumcode => $foreman::params::yumcode,
|
||
gpgcheck => $gpgcheck,
|
Also available in: Unified diff
Partial puppet-lint fixes