diff options
author | intrigeri <intrigeri@boum.org> | 2010-12-11 09:39:27 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2010-12-11 09:39:27 +0100 |
commit | 1cf642b3a87399c165e9e66399ab92694b27ee43 (patch) | |
tree | 27f0612ef1104f4158a94bbf9455b25ecf8fa1d6 /manifests/apticron.pp | |
parent | 5e94f0707c2e77f73444a88844bc800124d6e05e (diff) | |
parent | ab3a5294cf0ea0cf2ad233e04bf13f7631f9454c (diff) | |
download | puppet-apt-1cf642b3a87399c165e9e66399ab92694b27ee43.tar.gz puppet-apt-1cf642b3a87399c165e9e66399ab92694b27ee43.tar.bz2 |
Merge remote branch 'riseup/master'
Diffstat (limited to 'manifests/apticron.pp')
-rw-r--r-- | manifests/apticron.pp | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/manifests/apticron.pp b/manifests/apticron.pp new file mode 100644 index 0000000..2fe8e44 --- /dev/null +++ b/manifests/apticron.pp @@ -0,0 +1,54 @@ +class apt::apticron { + + case $apticron_ensure_version { + '': { $apticron_ensure_version = "present" } + } + + case $apticron_config { + '': { $apticron_config = "apt/${operatingsystem}/apticron_${lsbdistcodename}.erb" } + } + + case $apticron_email { + '': { $apticron_email = "root" } + } + + case $apticron_diff_only { + '': { $apticron_diff_only = "1" } + } + + case $apticron_listchanges_profile { + '': { $apticron_listchanges_profile = "apticron" } + } + + case $apticron_system { + '': { $apticron_system = false } + } + + case $apticron_ipaddressnum { + '': { $apticron_ipaddressnum = false } + } + + case $apticron_ipaddresses { + '': { $apticron_ipaddresses = false } + } + + case $apticron_notifyholds { + '': { $apticron_notifyholds = "0" } + } + + case $apticron_notifynew { + '': { $apticron_notifynew = "0" } + } + + case $apticron_customsubject { + '': { $apticron_customsubject = "" } + } + + package { apticron: ensure => $apticron_ensure_version } + + file { "/etc/apticron/apticron.conf": + content => template($apticron_config), + mode => 0644, owner => root, group => root, + require => Package["apticron"]; + } +} |