X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a68415b8f2bf106b6ea5948b0605c897b516ef4f..5fb76dc7c3c0de9177b690895aed29d479aa144a:/cookbooks/db/recipes/master.rb diff --git a/cookbooks/db/recipes/master.rb b/cookbooks/db/recipes/master.rb index 62ce2b4d7..fe9c4cacf 100644 --- a/cookbooks/db/recipes/master.rb +++ b/cookbooks/db/recipes/master.rb @@ -1,14 +1,14 @@ # -# Cookbook Name:: db +# Cookbook:: db # Recipe:: master # -# Copyright 2011, OpenStreetMap Foundation +# Copyright:: 2011, OpenStreetMap Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, @@ -49,6 +49,7 @@ end postgresql_user "planetdiff" do cluster node[:db][:cluster] password passwords["planetdiff"] + replication true end postgresql_user "backup" do @@ -82,10 +83,3 @@ postgresql_extension "btree_gist" do database "openstreetmap" 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 0o755 -end