Revision 5e2bfd7e
Added by Quirin Pamp over 1 year ago
manifests/plugin/deb.pp | ||
---|---|---|
# @summary Pulp Deb plugin
|
||
# @param use_pulp2_content_route Whether to redirect the legacy (Pulp 2) URL, /pulp/deb/, to the content server
|
||
# @param use_pulp2_content_route
|
||
# Whether to redirect the legacy (Pulp 2) URL, /pulp/deb/, to the content server
|
||
# @param force_ignore_missing_package_indices
|
||
# Wheter to set the FORCE_IGNORE_MISSING_PACKAGE_INDICES setting to True or
|
||
# False in /etc/pulp/settings.py.
|
||
class pulpcore::plugin::deb (
|
||
Boolean $use_pulp2_content_route = false,
|
||
Boolean $force_ignore_missing_package_indices = true,
|
||
) {
|
||
if $use_pulp2_content_route {
|
||
$context = {
|
||
... | ... | |
$content = undef
|
||
}
|
||
|
||
$deb_plugin_config_fimpi = to_python($force_ignore_missing_package_indices)
|
||
|
||
pulpcore::plugin { 'deb':
|
||
config => "FORCE_IGNORE_MISSING_PACKAGE_INDICES = ${deb_plugin_config_fimpi}",
|
||
http_content => $content,
|
||
https_content => $content,
|
||
}
|
Also available in: Unified diff
Fixes #35496 - Add default pulp_deb config
https://projects.theforeman.org/issues/35496
For Katello users this is the sane/expected default behaviour. It allows
for the synchronization of partial Ubuntu mirrors, a very common use
case in the wild. Users often stumble over the error that is thrown for
such mirrors without this setting.