diff --git a/metadata.rb b/metadata.rb index b5191f9..3cfd574 100644 --- a/metadata.rb +++ b/metadata.rb @@ -15,3 +15,7 @@ depends 'nodejs' depends 'samba' + +# additional for chef-solo +depends 'chef-solo-search', '~> 0.5.1' + diff --git a/recipes/database.rb b/recipes/database.rb index 15ac4ff..f6305c1 100644 --- a/recipes/database.rb +++ b/recipes/database.rb @@ -18,12 +18,14 @@ # begin - data_bag('databases').each do |database| databasedata = data_bag_item('databases', database)[node.chef_environment] - begin + Chef::Log.debug(databasedata.inspect) + Chef::Log.debug("Cookbook #{cookbook_name} in the recipe: #{recipe_name}.") + + begin database_connection = { :host => databasedata['host'], :port => databasedata['port'] diff --git a/recipes/projects.rb b/recipes/projects.rb index 98d8c81..b51e020 100644 --- a/recipes/projects.rb +++ b/recipes/projects.rb @@ -36,8 +36,6 @@ # create parentprojectdir directory parentprojectdir.to_path do - owner projectdata['owner'] - group projectdata['group'] mode 00775 action :create recursive true