aboutsummaryrefslogtreecommitdiff
path: root/manifests/apticron.pp
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-12-11 09:39:27 +0100
committerintrigeri <intrigeri@boum.org>2010-12-11 09:39:27 +0100
commit1cf642b3a87399c165e9e66399ab92694b27ee43 (patch)
tree27f0612ef1104f4158a94bbf9455b25ecf8fa1d6 /manifests/apticron.pp
parent5e94f0707c2e77f73444a88844bc800124d6e05e (diff)
parentab3a5294cf0ea0cf2ad233e04bf13f7631f9454c (diff)
downloadpuppet-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.pp54
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"];
+ }
+}