Skip to content

Instantly share code, notes, and snippets.

@seth
Created July 14, 2010 21:32
Show Gist options
  • Save seth/476120 to your computer and use it in GitHub Desktop.
Save seth/476120 to your computer and use it in GitHub Desktop.
diff --git a/cookbooks/mysql/attributes/server.rb b/cookbooks/mysql/attributes/server.rb
index af13a03..4a2dc35 100644
--- a/cookbooks/mysql/attributes/server.rb
+++ b/cookbooks/mysql/attributes/server.rb
@@ -19,9 +19,9 @@
::Chef::Node.send(:include, Opscode::OpenSSL::Password)
-default[:mysql][:server_debian_password] = secure_password
-default[:mysql][:server_root_password] = secure_password
-default[:mysql][:server_repl_password] = secure_password
+set_unless[:mysql][:server_debian_password] = secure_password
+set_unless[:mysql][:server_root_password] = secure_password
+set_unless[:mysql][:server_repl_password] = secure_password
default[:mysql][:bind_address] = ipaddress
default[:mysql][:datadir] = "/var/lib/mysql"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment