allow for purging preferences
This commit is contained in:
parent
6e9232a627
commit
cfb6a35603
1 changed files with 11 additions and 1 deletions
|
@ -25,7 +25,8 @@ class apt(
|
||||||
$proxy_host = false,
|
$proxy_host = false,
|
||||||
$proxy_port = '8080',
|
$proxy_port = '8080',
|
||||||
$purge_sources_list = false,
|
$purge_sources_list = false,
|
||||||
$purge_sources_list_d = false
|
$purge_sources_list_d = false,
|
||||||
|
$purge_preferences_d = false
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include apt::params
|
include apt::params
|
||||||
|
@ -69,6 +70,15 @@ class apt(
|
||||||
notify => Exec['apt_update'],
|
notify => Exec['apt_update'],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { 'preferences.d':
|
||||||
|
ensure => directory,
|
||||||
|
path => $preferences_d,
|
||||||
|
owner => root,
|
||||||
|
group => root,
|
||||||
|
purge => $purge_preferences_d,
|
||||||
|
recurse => $purge_preferences_d,
|
||||||
|
}
|
||||||
|
|
||||||
case $disable_keys {
|
case $disable_keys {
|
||||||
true: {
|
true: {
|
||||||
file { '99unauth':
|
file { '99unauth':
|
||||||
|
|
Loading…
Reference in a new issue