Revision 7813d882
Added by Ewoud Kohl van Wijngaarden about 7 years ago
manifests/repo.pp | ||
---|---|---|
# Configure the foreman repo
|
||
class foreman::repo(
|
||
$custom_repo = $::foreman::custom_repo,
|
||
$repo = $::foreman::repo,
|
||
$gpgcheck = $::foreman::gpgcheck
|
||
$custom_repo = $::foreman::custom_repo,
|
||
$repo = $::foreman::repo,
|
||
$gpgcheck = $::foreman::gpgcheck,
|
||
$configure_epel_repo = $::foreman::configure_epel_repo,
|
||
$configure_scl_repo = $::foreman::configure_scl_repo,
|
||
) {
|
||
anchor { 'foreman::repo::begin': }
|
||
|
||
... | ... | |
}
|
||
|
||
Anchor['foreman::repo::begin'] ->
|
||
class { '::foreman::repos::extra': } ->
|
||
class { '::foreman::repos::extra':
|
||
configure_epel_repo => $configure_epel_repo,
|
||
configure_scl_repo => $configure_scl_repo,
|
||
} ->
|
||
anchor { 'foreman::repo::end': }
|
||
}
|
Also available in: Unified diff
Allow including foreman::repo standalone
By adding all parameters on the foreman::repo class it's possible to
include the class without the main foreman class.