summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Filion <gabster@lelutin.ca>2015-02-20 18:06:55 -0500
committerGabriel Filion <gabster@lelutin.ca>2015-02-20 18:06:55 -0500
commit6f30dd81e946998a222cc95872a33548e856c7f5 (patch)
tree6d5fa55d17ab7b6a4102f90749e127fd2752817b
parenta4b8195e7a5d444448b3750d66ec725d6f7c67ab (diff)
Rename nagios flag to manage_nagios
This is so that we stay consistent between all shared modules that are using this pattern.
-rw-r--r--README8
-rw-r--r--manifests/service.pp4
2 files changed, 6 insertions, 6 deletions
diff --git a/README b/README
index 32698b3..509650f 100644
--- a/README
+++ b/README
@@ -55,8 +55,8 @@ stunnel configuration variable (see manifests/server.pp) which will be used to
create the /etc/stunnel/${name}.conf file, and then notify the stunnel service
so it will restart.
-If you pass $use_nagios to this define, it will create a nagios::service entry
-for stunnel_${name} which will watch for the appropriate number processes with
-that configuration name
+If you pass $manage_nagios to this define, it will create a nagios::service
+entry for stunnel_${name} which will watch for the appropriate number processes
+with that configuration name
+
- \ No newline at end of file
diff --git a/manifests/service.pp b/manifests/service.pp
index 666826d..910f714 100644
--- a/manifests/service.pp
+++ b/manifests/service.pp
@@ -51,7 +51,7 @@ define stunnel::service (
$timeoutconnect = false,
$timeoutidle = false,
$transparent = false,
- $use_nagios = false,
+ $manage_nagios = false,
$verify = false
) {
@@ -71,7 +71,7 @@ define stunnel::service (
mode => '0600';
}
- if $use_nagios {
+ if $manage_nagios {
nagios::service { "stunnel_${name}":
check_command => "nagios-stat-proc!/usr/bin/stunnel4 /etc/stunnel/${name}.conf!6!5!proc";
}