From 0363f38e186b8c942a6db2de4974befbc373f618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 11 Jul 2018 07:45:22 +0200 Subject: Refactor a bit monitoring profile --- modules/profile/manifests/monitoring/hosts.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/profile/manifests/monitoring/hosts.pp') diff --git a/modules/profile/manifests/monitoring/hosts.pp b/modules/profile/manifests/monitoring/hosts.pp index 3c8bc73..f7802be 100644 --- a/modules/profile/manifests/monitoring/hosts.pp +++ b/modules/profile/manifests/monitoring/hosts.pp @@ -1,11 +1,11 @@ -class profile::monitoring::hosts { +class profile::monitoring::hosts inherits profile::monitoring::params { $real_hostname = lookup("base_installation::real_hostname") Nagios_hostgroup { ensure => "present", owner => "naemon", group => "naemon", - target => "/etc/naemon/objects.cfg", + target => $objects, notify => Service["naemon"], before => Service["naemon"], require => File["/etc/naemon"], @@ -15,7 +15,7 @@ class profile::monitoring::hosts { ensure => "present", owner => "naemon", group => "naemon", - target => "/etc/naemon/objects.cfg", + target => $objects, notify => Service["naemon"], before => Service["naemon"], require => File["/etc/naemon"], -- cgit v1.2.3