Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

nagios to generate pw for mysql and pgsql

  • Loading branch information...
commit e2ee7108a04812f1fae43ed1506727d3bbfd706e 1 parent f70271c
@phunehehe authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 nagios/recipes/default.rb
View
5 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
Please sign in to comment.
Something went wrong with that request. Please try again.