From d6e70139959efcd6f0ae1f5149d0d02021c21f88 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 2 Aug 2018 12:33:45 +0100 Subject: [PATCH] Use configured read only database for note dumps --- cookbooks/planet/templates/default/planet-notes-dump.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/planet/templates/default/planet-notes-dump.erb b/cookbooks/planet/templates/default/planet-notes-dump.erb index 659510425..92ca8b375 100644 --- a/cookbooks/planet/templates/default/planet-notes-dump.erb +++ b/cookbooks/planet/templates/default/planet-notes-dump.erb @@ -33,7 +33,7 @@ if [ \! -d ${planet_dir}/notes/ ] if [ \! -d ${planet_dir}/notes/${cur_year}/ ]; then mkdir ${planet_dir}/notes/${cur_year}/; fi cd ${planet_dir}/notes/${cur_year}/ -/usr/bin/python /opt/planet-notes-dump/dump.py --quiet --database openstreetmap --host db-slave --user planetdump --password '<%= @password %>' .${cur_planet_notes} +/usr/bin/python /opt/planet-notes-dump/dump.py --quiet --database openstreetmap --host <%= node[:web][:readonly_database_host] %> --user planetdump --password '<%= @password %>' .${cur_planet_notes} pbzip2 -p6 -9 .${cur_planet_notes} planet_notes_size=$(du -sb .${cur_planet_notes}.bz2 | awk '{ print $1 }') -- 2.39.5