apticron.pp 590 B

123456789101112131415161718192021222324
  1. class apt::apticron(
  2. $ensure_version = 'installed',
  3. $config = "apt/${::operatingsystem}/apticron_${::debian_codename}.erb",
  4. $email = 'root',
  5. $diff_only = '1',
  6. $listchanges_profile = 'apticron',
  7. $system = false,
  8. $ipaddressnum = false,
  9. $ipaddresses = false,
  10. $notifyholds = '0',
  11. $notifynew = '0',
  12. $customsubject = ''
  13. ) {
  14. package { 'apticron': ensure => $ensure_version }
  15. file { '/etc/apticron/apticron.conf':
  16. content => template($apt::apticron::config),
  17. owner => root,
  18. group => root,
  19. mode => '0644',
  20. require => Package['apticron'];
  21. }
  22. }