# register this host at the backup servers # # This class set up the ssh authorization on the backup servers # so this client can push WAL segments. define postgres::backup_server::register_backup_clienthost ( ) { include postgres::backup_server::globals $ssh_command = "/usr/local/bin/debbackup-ssh-wrap ${::hostname}" ssh::authorized_key_add { 'register_backup_clienthost': target_user => $postgres::backup_server::globals::backup_unix_user, key => dig($facts, 'ssh_keys_users', 'postgres', 'id_rsa.pub', 'line'), command => $ssh_command, from => $base::public_addresses, collect_tag => $postgres::backup_server::globals::tag_source_sshkey, } }