d007a40333
* Removes dependency on lsb-release and/or Facter >1.7 (values are based on $::lsbdistcodename, when available) * Simplifies maintenance: only lib/facter/util/* require updates as new releases are made Caveats: * apt::codename is removed; to override debian_* facts, set the FACTER_debian_codename environment variable for puppet * If tracking unstable, make sure lsb-release is installed, as other methods can't tell between testing and unstable
19 rader
523 B
Puppet
19 rader
523 B
Puppet
class apt::listchanges(
|
|
$ensure_version = 'installed',
|
|
$config = "apt/${::operatingsystem}/listchanges_${::debian_codename}.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'];
|
|
}
|
|
}
|