]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/db/recipes/master.rb
Tune mysql for piwik
[chef.git] / cookbooks / db / recipes / master.rb
index 70ae0e6736a8c7389b809b4517cffad26f638e48..4af5fdb5cd95dfdaf184a1d180c6b0a987c31624 100644 (file)
@@ -80,7 +80,7 @@ end
 postgresql_extension "btree_gist" do
   cluster node[:db][:cluster]
   database "openstreetmap"
-  only_if { node[:postgresql][:clusters][node[:db][:cluster]] and node[:postgresql][:clusters][node[:db][:cluster]][:version] >= 9.0 }
+  only_if { node[:postgresql][:clusters][node[:db][:cluster]] && node[:postgresql][:clusters][node[:db][:cluster]][:version] >= 9.0 }
 end
 
 template "/etc/cron.daily/rails-db" do