-define postgres::backup_server::register_backup_clienthost (
- $sshpubkey = $::postgresql_key,
- $ipaddrlist = join(getfromhash($site::nodeinfo, 'ldap', 'ipHostNumber'), ","),
- $hostname = $::hostname,
+# This class set up the ssh authorization on the backup servers
+# so this client can push WAL segments. Furthermore, the
+# client will be allowed to read other hosts backups -- specify
+# the list of allowed target hosts via params.
+#
+# @param allow_read_basedir directory under which files can be read
+# @param allow_read_hosts subdirectories under base to allow
+class postgres::backup_server::register_backup_clienthost (
+ String $allow_read_basedir = '/srv/backups/pg',
+ Array[Stdlib::Fqdn] $allow_read_hosts = [],