$notify_update = true,
) {
+ include 'apt::params'
if $content and $source {
fail('apt::setting cannot have both content and source')
}
validate_string($content)
}
- if $setting_type == 'list' {
+ if ($setting_type == 'list') or ($setting_type == 'pref') {
$_priority = ''
} else {
$_priority = $priority
}
- $_path = $::apt::config_files[$setting_type]['path']
- $_ext = $::apt::config_files[$setting_type]['ext']
+ $_path = $::apt::params::config_files[$setting_type]['path']
+ $_ext = $::apt::params::config_files[$setting_type]['ext']
if $notify_update {
- $_notify = Exec['apt_update']
+ $_notify = Class['apt::update']
} else {
$_notify = undef
}
source => $source,
notify => $_notify,
}
-
- if $notify_update {
- anchor { "apt::setting::${name}":
- require => Class['apt::update']
- }
- }
}