module-apt/manifests/preferences.pp

23 lines
607 B
ObjectPascal
Raw Normal View History

class apt::preferences {
concat::fragment{"apt_preferences_header":
content => $custom_preferences ? {
'' => $operatingsystem ? {
'debian' => template("apt/${operatingsystem}/preferences_${codename}.erb"),
2011-01-23 23:33:06 +01:00
'ubuntu' => template("apt/${operatingsystem}/preferences_${codename}.erb"),
},
default => $custom_preferences
},
order => 00,
target => '/etc/apt/preferences',
2010-10-17 14:36:28 +02:00
}
concat{'/etc/apt/preferences':
alias => apt_config,
# only update together
require => File["/etc/apt/sources.list"],
owner => root, group => 0, mode => 0644;
}
}