diff --git a/manifests/init.pp b/manifests/init.pp index 7338907..3475664 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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':