projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fasolo on postgresql 9.6
[mirror/dsa-puppet.git]
/
modules
/
postgres
/
templates
/
backup_server
/
postgres-make-base-backups.erb
diff --git
a/modules/postgres/templates/backup_server/postgres-make-base-backups.erb
b/modules/postgres/templates/backup_server/postgres-make-base-backups.erb
index
1e11b57
..
5cc8543
100755
(executable)
--- a/
modules/postgres/templates/backup_server/postgres-make-base-backups.erb
+++ b/
modules/postgres/templates/backup_server/postgres-make-base-backups.erb
@@
-1,6
+1,7
@@
#!/bin/bash
# run a bunch of full postgresql backups
#!/bin/bash
# run a bunch of full postgresql backups
+# vim:syn=sh:
# Copyright 2014 Peter Palfrader
# Copyright 2014 Peter Palfrader
@@
-67,6
+68,7
@@
thishost=$(hostname -f)
while read host port username cluster version; do
[ "${host#\#}" = "$host" ] || continue
while read host port username cluster version; do
[ "${host#\#}" = "$host" ] || continue
+ [ -z "$host" ] && continue
if [ -n "$forcehostport" ] && [ "$forcehostport" != "$host:$port" ]; then
[ "$verbose" -gt 0 ] && echo "Skipping $host:$port $version/$cluster."
if [ -n "$forcehostport" ] && [ "$forcehostport" != "$host:$port" ]; then
[ "$verbose" -gt 0 ] && echo "Skipping $host:$port $version/$cluster."
@@
-92,13
+94,11
@@
bmdb1.debian.org 5435 debian-backup main 9.4
bmdb1.debian.org 5436 debian-backup wannabuild 9.4
bmdb1.debian.org 5440 debian-backup debsources 9.4
danzi.debian.org 5433 debian-backup main 9.4
bmdb1.debian.org 5436 debian-backup wannabuild 9.4
bmdb1.debian.org 5440 debian-backup debsources 9.4
danzi.debian.org 5433 debian-backup main 9.4
-fasolo.debian.org 5433 debian-backup dak 9.
4
+fasolo.debian.org 5433 debian-backup dak 9.
6
sibelius.debian.org 5433 debian-backup snapshot 9.4
sibelius.debian.org 5433 debian-backup snapshot 9.4
-vittoria.debian.org 5432 debian-backup main 9.4
-melartin.debian.org 5432 debian-backup main 9.6
-buxtehude.debian.org 5433 debian-backup main 9.4
-buxtehude.debian.org 5441 debian-backup debbugs 9.6
<%- if @hostname != "backuphost" -%>
moszumanska.debian.org 5432 debian-backup main 9.1
<%- end -%>
<%- if @hostname != "backuphost" -%>
moszumanska.debian.org 5432 debian-backup main 9.1
<%- end -%>
-EOF
+#
+# puppet notice: this is just a partial file. The tail EOF comes
+# from a different concat fragment