Skip to content

Commit

Permalink
Import mysql version 1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
schisamo committed May 4, 2011
1 parent 86a80f3 commit e8e7d8f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
6 changes: 0 additions & 6 deletions cookbooks/mysql/attributes/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@
# limitations under the License.
#

::Chef::Node.send(:include, Opscode::OpenSSL::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"

Expand Down
2 changes: 1 addition & 1 deletion cookbooks/mysql/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,5 +222,5 @@
"mysql::server": "Installs packages required for mysql servers w/o manual intervention",
"mysql::server_ec2": "Performs EC2-specific mountpoint manipulation"
},
"version": "1.0.2"
"version": "1.0.3"
}
2 changes: 1 addition & 1 deletion cookbooks/mysql/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
license "Apache 2.0"
description "Installs and configures mysql for client or server"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "1.0.2"
version "1.0.3"
recipe "mysql", "Includes the client recipe to configure a client"
recipe "mysql::client", "Installs packages required for mysql clients using run_action magic"
recipe "mysql::server", "Installs packages required for mysql servers w/o manual intervention"
Expand Down
7 changes: 7 additions & 0 deletions cookbooks/mysql/recipes/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,15 @@
# limitations under the License.
#

::Chef::Recipe.send(:include, Opscode::OpenSSL::Password)

include_recipe "mysql::client"

# generate all passwords
node.set_unless['mysql']['server_debian_password'] = secure_password
node.set_unless['mysql']['server_root_password'] = secure_password
node.set_unless['mysql']['server_repl_password'] = secure_password

if platform?(%w{debian ubuntu})

directory "/var/cache/local/preseeding" do
Expand Down

0 comments on commit e8e7d8f

Please sign in to comment.