allow for purging preferences

This commit is contained in:
Zach Leslie 2012-05-21 15:51:33 -07:00
parent 6e9232a627
commit cfb6a35603

View file

@ -25,7 +25,8 @@ class apt(
$proxy_host = false,
$proxy_port = '8080',
$purge_sources_list = false,
$purge_sources_list_d = false
$purge_sources_list_d = false,
$purge_preferences_d = false
) {
include apt::params
@ -69,6 +70,15 @@ class apt(
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 {
true: {
file { '99unauth':