Add webhook things for Ganneff based on his patch
[mirror/dsa-puppet.git] / modules / hardware / manifests / raid / proliant.pp
index a19ec28..a0ab33c 100644 (file)
@@ -1,5 +1,5 @@
 class hardware::raid::proliant {
-       if $::smartarraycontroller {
+       if $::smartarraycontroller_hpsa or $::smartarraycontroller_cciss {
                site::aptrepo { 'debian.restricted':
                        url        => 'http://db.debian.org/debian-admin',
                        suite      => "${::lsbdistcodename}-restricted",
@@ -26,6 +26,17 @@ class hardware::raid::proliant {
                                ensure => installed,
                        }
                }
+
+               if $::smartarraycontroller_hpsa {
+                       concat::fragment { 'dsa-puppet-stuff--nagios--dsa-check-hpssacli':
+                               target => '/etc/cron.d/dsa-puppet-stuff',
+                               order  => '020',
+                               content  => @(EOF)
+                                       27 */2 * * * root sleep $(( $RANDOM \% 900 )); dsa-wrap-nagios-check dsa-check-hpssacli
+                                       | EOF
+                       }
+               }
+               file { '/etc/cron.d/puppet-nagios-hpsa': ensure => absent, }
        } else {
                site::aptrepo { 'debian.restricted':
                        ensure => absent,