auto_clientcerts_dir: '/srv/puppet.debian.org/ca/RESULT/clientcerts'
apt::sources::debian::location: 'https://deb.debian.org/debian/'
-
-# all of these should be retired in favour of including the class role
-# with the host. weasel, 2019-09
-roles:
- postgresql_server:
- # these use pg-receive-file-from-backup which is defined in the
- # postgres::backup_source class. This should be
- # cleaned up and handled properly, including the ssh auth keys setup
- - snapshotdb-manda-01.debian.org
-
classes:
- base::includes
classes:
- roles::snapshot_db
+ - roles::postgresql::server
+
+postgres::backup_server::register_backup_clienthost::allow_read_hosts: ['sallinen']
source => 'puppet:///modules/postgres/backup_server/postgres-make-one-base-backup',
mode => '0555'
}
- file { "/etc/ssh/userkeys/${postgres::backup_server::globals::backup_unix_user}":
- content => template('postgres/backup_server/sshkeys-manual.erb'),
- }
ssh::authorized_key_collect { 'postgres::backup_server':
target_user => $postgres::backup_server::globals::backup_unix_user,
collect_tag => $postgres::backup_server::globals::tag_source_sshkey,
+++ /dev/null
-# maintained manually in puppet
-# postgresql backups:
-command="/usr/local/bin/debbackup-ssh-wrap snapshotdb-manda-01 --read-allow=/srv/backups/pg/sallinen",restrict,from="82.195.75.73,2001:41b8:202:deb::311:73" ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC53Sx/qzFL+GNrT01fP9tXpd9CjaOZuhLVHIOpoDQM5Nrr4DgbWA3vTghHpdpRHt18EmzWEmclTk3qej/vN6vBIG4cMc8EfpvEvXOLW2qQzMMrx5UeergUX76ie41B8yOCd9lf6H3G+rLqfBR6xEws39WgwTBRT86mKpolYDCJHX1Q8i85eJ/mw9FjHUENZYSxO4k5KBas2/G03+e+/J4TvgjyGbqCxc1RvmiMLE+cnfmeaprZuUbKkL0Df/mV2osuKStfG9ise/qtL0Kv318bsnYvXPDMdFWtFsR1lX2MpHfCFYWJd4bHtNOGSlixYbHcFlNFlSDessfLgpoKwWi3 postgres@snapshotdb-manda-01 (2019-05-23)
# = Class: roles
#
class roles {
- if has_role('postgresql_server') {
- include postgres::backup_source
- }
-
if $::keyring_debian_org_mirror {
include roles::keyring_debian_org_mirror
}