]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blobdiff - modules/profile/manifests/monitoring/contacts.pp
Refactor a bit monitoring profile
[perso/Immae/Projets/Puppet.git] / modules / profile / manifests / monitoring / contacts.pp
index 284d51c9b536b24541cce096c12b068eaf6ce50e..a751153b8f171517c6cf686e63bbe7882320b100 100644 (file)
@@ -1,11 +1,12 @@
-class profile::monitoring::contacts {
+class profile::monitoring::contacts inherits profile::monitoring::params {
   Nagios_contactgroup {
-    ensure => "present",
-    owner  => "naemon",
-    group  => "naemon",
-    target => "/etc/naemon/objects.cfg",
-    notify => Service["naemon"],
-    before => Service["naemon"],
+    ensure  => "present",
+    owner   => "naemon",
+    group   => "naemon",
+    target  => $objects,
+    notify  => Service["naemon"],
+    before  => Service["naemon"],
+    require => File["/etc/naemon"],
   }
 
   nagios_contactgroup { "admins":