From 1c4eeefd3740122b8284486e5d7aae6949c92896 Mon Sep 17 00:00:00 2001 From: Rudger Gravestein Date: Fri, 27 Feb 2015 00:11:55 +0100 Subject: [PATCH] Fix database issue --- metadata.rb | 2 +- recipes/database.rb | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/metadata.rb b/metadata.rb index e37ac8a..70b47e3 100644 --- a/metadata.rb +++ b/metadata.rb @@ -4,7 +4,7 @@ license 'Apache 2.0' description 'Installs/Configures ZF2' long_description 'Installs/Configures ZF2' -version '0.6.2' +version '0.6.3' depends 'baseserver', '~> 0.7.10' diff --git a/recipes/database.rb b/recipes/database.rb index f6305c1..2471813 100644 --- a/recipes/database.rb +++ b/recipes/database.rb @@ -17,6 +17,18 @@ # limitations under the License. # + + + +mysql_service 'default' do + port '3306' + version '5.5' + initial_root_password node['mysql']['server_root_password'] + action [:create, :start] +end + + + begin data_bag('databases').each do |database| databasedata = data_bag_item('databases', database)[node.chef_environment] @@ -33,7 +45,6 @@ case databasedata['type'] when 'mysql' - include_recipe 'mysql::server' include_recipe 'database::mysql' database_connection.merge!({ :username => 'root', :password => node['mysql']['server_root_password'] })