Navigation Menu

Skip to content

Commit

Permalink
fixing stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon committed Apr 10, 2012
1 parent ba60b88 commit 58c89d7
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions chef-repo/cookbooks/mysql/recipes/client55.rb
Expand Up @@ -18,7 +18,7 @@
remote_file "/tmp/#{rpm_file}" do
source "http://www.mysql.com/get/Downloads/MySQL-5.5/#{rpm_file}/from/http://mysql.llarian.net/"
#Don't Download if its already installed
not_if "rpm -qa | egrep -qi 'MySQL-server-5.5'"
not_if "rpm -qa | egrep -qi 'MySQL-client-5.5'"
notifies :install, "rpm_package[#{rpm_file}]", :immediately
#If we already downloaded it, don't download it again. Unlikely to be useful in the real world, but a time saver during dev/testing
action :create_if_missing
Expand Down Expand Up @@ -53,18 +53,4 @@

end

#Enable and Start MySQL
service "mysql" do
supports :status => true, :restart => true, :reload => true
action [ :enable, :start ]
end

#Set Password
execute "assign-root-password" do
command "#{node['mysql']['mysqladmin_bin']} -u root password \"#{node['mysql']['server_root_password']}\""
action :run
end
execute "assign-root-password" do
command "#{node['mysql']['mysqladmin_bin']} -u root -h localhost password \"#{node['mysql']['server_root_password']}\""
action :run
end

0 comments on commit 58c89d7

Please sign in to comment.