class apt::params {
$root = '/etc/apt'
$provider = '/usr/bin/apt-get'
+ $sources_list = "${root}/sources.list"
$sources_list_d = "${root}/sources.list.d"
- $apt_conf_d = "${root}/apt.conf.d"
+ $conf_d = "${root}/apt.conf.d"
+ $preferences = "${root}/preferences"
$preferences_d = "${root}/preferences.d"
if $::osfamily != 'Debian' {
fail('This module only works on Debian or derivatives like Ubuntu')
}
+ $config_files = {
+ 'conf' => {
+ 'path' => $conf_d,
+ 'ext' => '',
+ },
+ 'pref' => {
+ 'path' => $preferences_d,
+ 'ext' => '',
+ },
+ 'list' => {
+ 'path' => $sources_list_d,
+ 'ext' => '.list',
+ }
+ }
+
+ $file_defaults = {
+ 'owner' => 'root',
+ 'group' => 'root',
+ 'mode' => '0644',
+ }
+
case $::lsbdistid {
'ubuntu', 'debian': {
$distid = $::lsbdistid