module-apt/manifests/default_preferences.pp

17 lines
668 B
ObjectPascal
Raw Normal View History

2009-10-30 20:20:42 +01:00
class apt::default_preferences {
config_file {
# this just pins unstable and testing to very low values
"/etc/apt/preferences":
content => template("apt/preferences_${codename}.erb"),
2009-10-30 20:20:42 +01:00
# use File[apt_config] to reference a completed configuration
# See "The Puppet Semaphor" 2007-06-25 on the puppet-users ML
alias => apt_config,
# only update together
require => File["/etc/apt/sources.list"];
# little default settings which keep the system sane
"/etc/apt/apt.conf.d/from_puppet":
content => "APT::Get::Show-Upgraded true;\nDSelect::Clean $real_apt_clean;\n",
2010-08-09 14:30:34 +02:00
before => Config_file[apt_config];
2009-10-30 20:20:42 +01:00
}
}