aboutsummaryrefslogtreecommitdiff
path: root/manifests/default_preferences.pp
blob: 165b3643af4908fdbc4e277592338fd34c293cd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class apt::default_preferences {
  case $operatingsystem {
    'debian': {
      config_file {
        "/etc/apt/preferences":
          content => template("apt/${operatingsystem}/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"];
      }
    }
    'ubuntu': {
      notice('There is no support for default Ubuntu APT preferences')
    }
  }
}