2012-06-06 02:31:15 +02:00
|
|
|
class apt::apticron(
|
2012-06-14 15:07:29 +02:00
|
|
|
$ensure_version = 'installed',
|
|
|
|
$config = "apt/${::operatingsystem}/apticron_${::lsbdistcodename}.erb",
|
|
|
|
$email = 'root',
|
|
|
|
$diff_only = '1',
|
|
|
|
$listchanges_profile = 'apticron',
|
|
|
|
$system = false,
|
|
|
|
$ipaddressnum = false,
|
|
|
|
$ipaddresses = false,
|
|
|
|
$notifyholds = '0',
|
|
|
|
$notifynew = '0',
|
|
|
|
$customsubject = ''
|
2012-06-06 02:31:15 +02:00
|
|
|
) {
|
|
|
|
|
2013-01-02 14:12:11 +01:00
|
|
|
package { 'apticron': ensure => $ensure_version }
|
2010-12-09 04:24:24 +01:00
|
|
|
|
2013-01-02 14:12:11 +01:00
|
|
|
file { '/etc/apticron/apticron.conf':
|
2012-06-06 02:31:15 +02:00
|
|
|
content => template($apt::apticron::config),
|
2013-01-02 14:12:11 +01:00
|
|
|
owner => root,
|
|
|
|
group => root,
|
|
|
|
mode => '0644',
|
|
|
|
require => Package['apticron'];
|
2010-12-09 04:24:24 +01:00
|
|
|
}
|
|
|
|
}
|