Permalink
Browse files

nagios to generate pw for mysql and pgsql

  • Loading branch information...
1 parent f70271c commit e2ee7108a04812f1fae43ed1506727d3bbfd706e @phunehehe committed Dec 3, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 nagios/recipes/default.rb
@@ -10,6 +10,11 @@
include_recipe node[:nagios][:recipe]
+Chef::Recipe.send(:include, Opscode::OpenSSL::Password)
+node.set_unless[:nagios][:mysql][:password] = secure_password
+node.set_unless[:nagios][:pgsql][:password] = secure_password
+
+
mysql_config = node[:nagios][:mysql]
if mysql_config[:enable] and mysql_config[:host] == 'localhost'
mysql_user mysql_config[:username] do

0 comments on commit e2ee710

Please sign in to comment.