2012-06-06 02:31:15 +02:00
|
|
|
class apt::listchanges(
|
2012-06-14 15:07:29 +02:00
|
|
|
$ensure_version = 'installed',
|
|
|
|
$config = "apt/${::operatingsystem}/listchanges_${::lsbdistcodename}.erb",
|
|
|
|
$frontend = 'mail',
|
|
|
|
$email = 'root',
|
|
|
|
$confirm = '0',
|
|
|
|
$saveseen = '/var/lib/apt/listchanges.db',
|
|
|
|
$which = 'both'
|
2012-06-06 02:31:15 +02:00
|
|
|
){
|
2013-01-02 14:12:11 +01:00
|
|
|
package { 'apt-listchanges': ensure => $ensure_version }
|
|
|
|
|
|
|
|
file { '/etc/apt/listchanges.conf':
|
2012-06-06 02:31:15 +02:00
|
|
|
content => template($apt::listchanges::config),
|
2013-01-02 14:12:11 +01:00
|
|
|
owner => root,
|
|
|
|
group => root,
|
|
|
|
mode => '0644',
|
|
|
|
require => Package['apt-listchanges'];
|
2010-12-09 04:25:09 +01:00
|
|
|
}
|
|
|
|
}
|