Moved MySQL-recipe to own file and start/stop the service to create the MySQL-system-tables (this should finally fix mysql-recipe)

This commit is contained in:
Dennis Schubert 2011-02-13 01:09:33 +01:00
parent 1a4f580716
commit 2dcbb9bb12
3 changed files with 12 additions and 3 deletions

View file

@ -19,9 +19,6 @@ end
execute "rvm deps" do
command "yum install -y bzip2"
end
execute "install mysql" do
command "yum install -y mysql mysql-server mysql-devel"
end
def harden_ruby(ruby_string)
Dir.glob("/usr/local/rvm/wrappers/#{ruby_string}/*").each do |file|

View file

@ -15,6 +15,7 @@ end
harden_ruby("ree-1.8.7-2010.02")
include_recipe "centos::image_magick"
include_recipe "centos::mysql"
include_recipe "common::main"
include_recipe "centos::nginx"
include_recipe "centos::redis"

View file

@ -0,0 +1,11 @@
execute "install mysql" do
command "yum install -y mysql mysql-server mysql-devel"
end
execute "start mysql service to create the system tables" do
command "service mysqld start"
end
execute "stop service again" do
command "service mysqld stop"
end