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
source "cron.erb"
owner "root"
group "root"
- mode 0755
+ mode 0o755
end