aboutsummaryrefslogtreecommitdiff
path: root/manifests/default_preferences.pp
blob: 521d2f234de15e9aeee7fc37241114651d447de0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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"),
      # 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",
      before => Config_file[apt_config];
  }
}