aboutsummaryrefslogtreecommitdiff
path: root/manifests/apticron.pp
blob: c5783118b864bc07bf9869685407b72b48af2f7a (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::apticron(
  $ensure_version = hiera('apticron_ensure_version','installed'),
  $config = hiera('apticron_config',"apt/${::operatingsystem}/apticron_${::lsbdistcodename}.erb"),
  $email = hiera('apticron_email', 'root'),
  $diff_only = hiera('apticron_diff_only', '1'),
  $listchanges_profile = hiera('apticron_listchanges_profile','apticron'),
  $system = hiera('apticron_system',false),
  $ipaddressnum = hiera('apticron_ipaddressnum',false),
  $ipaddresses = hiera('apticron_ipaddresses', false),
  $notifyholds = hiera('apticron_notifyholds', '0'),
  $notifynew = hiera('apticron_notifynew', '0'),
  $customsubject = hiera('apticron_customsubject','')
) {

  package { apticron: ensure => $ensure_version }

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