summaryrefslogtreecommitdiff
path: root/manifests/service
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-02-10 14:42:16 +0100
committermh <mh@immerda.ch>2012-02-10 14:42:16 +0100
commit60ebd42e903db7f5c1f8bb2f1d447e4d952a7265 (patch)
treee7dc07846b7fc2bda757998c175adc8f4a4d84e3 /manifests/service
parent9d1e4d707694489b91a4c5b5be7af44cf9b9493d (diff)
use trocla for that password
Diffstat (limited to 'manifests/service')
-rw-r--r--manifests/service/mysql.pp8
1 files changed, 4 insertions, 4 deletions
diff --git a/manifests/service/mysql.pp b/manifests/service/mysql.pp
index d501f06..95f0970 100644
--- a/manifests/service/mysql.pp
+++ b/manifests/service/mysql.pp
@@ -1,11 +1,11 @@
-# Checks a mysql instance via tcp or socket
+# Checks a mysql instance via tcp or socket
define nagios::service::mysql(
$ensure = present,
$check_host = 'absent',
$check_port = '3306',
$check_username = 'nagios',
- $check_password = $nagios_mysql_password,
+ $check_password = trocla("mysql_nagios_${::fqdn}",'plain','length: 32'),
$check_database = 'information_schema',
$check_warning = undef,
$check_critical = undef,
@@ -20,7 +20,7 @@ define nagios::service::mysql(
if ($check_host == 'absent') {
fail("Please specify a hostname, ip address or socket to check a mysql instance.")
}
-
+
case $check_mode {
'tcp': {
if ($check_host == 'localhost') {
@@ -39,7 +39,7 @@ define nagios::service::mysql(
}
}
}
-
+
nagios::service { "mysql_health_${name}":
ensure => $ensure,
check_command => "check_mysql_health!${check_host}!${check_port}!${check_username}!${check_password}!${name}!${check_database}",