summaryrefslogtreecommitdiff
path: root/manifests/listchanges.pp
blob: d657812b65f2fa57d5cf177f484ee63c88b39924 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class apt::listchanges (
  $ensure_version = 'present',
  $config         = "apt/${::operatingsystem}/listchanges.erb",
  $frontend       = 'mail',
  $email          = 'root',
  $confirm        = '0',
  $saveseen       = '/var/lib/apt/listchanges.db',
  $which          = 'both',
){

  package { 'apt-listchanges':
    ensure => $ensure_version;
  }

  file { '/etc/apt/listchanges.conf':
    content => template($apt::listchanges::config),
    owner   => root,
    group   => root,
    mode    => '0644',
    require => Package['apt-listchanges'];
  }
}