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