Permalink
Browse files

include mysql-server if mysql-host is localhost

  • Loading branch information...
1 parent 3833d9e commit b9e961dff9d24269bc6ba83136a45642df6702b8 @mdxp mdxp committed Feb 6, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 recipes/default.rb
View
@@ -22,7 +22,12 @@
include_recipe %w{php php::module_mysql php::module_gd}
include_recipe "postfix"
include_recipe "drupal::drush"
-include_recipe "mysql::client"
+
+if node['drupal']['site']['host'] == "localhost"
+ include_recipe "mysql::server"
+else
+ include_recipe "mysql::client"
+end
execute "mysql-install-drupal-privileges" do
command "/usr/bin/mysql -h #{node['drupal']['db']['host']} -u root -p#{node['mysql']['server_root_password']} < /etc/mysql/drupal-grants.sql"

0 comments on commit b9e961d

Please sign in to comment.