diff options
author | mh <mh@immerda.ch> | 2012-02-10 14:42:16 +0100 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2012-04-18 12:29:30 -0400 |
commit | 1159fd799dcf85bedbe0bb9ce44971263250ee46 (patch) | |
tree | 768944cd79b363c886471aa499c9475f34e6103a | |
parent | fb6ca15458566af5caaf4e6bc5f801afe17616f2 (diff) |
use trocla for that password
-rw-r--r-- | manifests/service/mysql.pp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/service/mysql.pp b/manifests/service/mysql.pp index 2fde402..53f1461 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, @@ -51,7 +51,7 @@ define nagios::service::mysql( } } } - + nagios::service { "mysql_health_${name}": ensure => $ensure, check_command => "check_mysql_health!${real_check_host}!${check_port}!${check_username}!${check_password}!${check_health_mode}!${check_database}${real_check_name}${real_check_warning}${real_check_critical}", |