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:
parent
1a4f580716
commit
2dcbb9bb12
3 changed files with 12 additions and 3 deletions
|
|
@ -19,9 +19,6 @@ end
|
||||||
execute "rvm deps" do
|
execute "rvm deps" do
|
||||||
command "yum install -y bzip2"
|
command "yum install -y bzip2"
|
||||||
end
|
end
|
||||||
execute "install mysql" do
|
|
||||||
command "yum install -y mysql mysql-server mysql-devel"
|
|
||||||
end
|
|
||||||
|
|
||||||
def harden_ruby(ruby_string)
|
def harden_ruby(ruby_string)
|
||||||
Dir.glob("/usr/local/rvm/wrappers/#{ruby_string}/*").each do |file|
|
Dir.glob("/usr/local/rvm/wrappers/#{ruby_string}/*").each do |file|
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ end
|
||||||
harden_ruby("ree-1.8.7-2010.02")
|
harden_ruby("ree-1.8.7-2010.02")
|
||||||
|
|
||||||
include_recipe "centos::image_magick"
|
include_recipe "centos::image_magick"
|
||||||
|
include_recipe "centos::mysql"
|
||||||
include_recipe "common::main"
|
include_recipe "common::main"
|
||||||
include_recipe "centos::nginx"
|
include_recipe "centos::nginx"
|
||||||
include_recipe "centos::redis"
|
include_recipe "centos::redis"
|
||||||
|
|
|
||||||
11
chef/cookbooks/centos/recipes/mysql.rb
Normal file
11
chef/cookbooks/centos/recipes/mysql.rb
Normal 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
|
||||||
Loading…
Reference in a new issue