- $datadir = assert_type(String[1], $postgresql::params::datadir)
- warning("foo ")
- file { "${datadir}/.nobackup":
- content => ""
- }
- if $::postgresql_key {
- $ipaddr = assert_type(String[1], join(getfromhash($site::nodeinfo, 'ldap', 'ipHostNumber'), ","))
-
- @@concat::fragment { "onion::balance::instance::dsa-snippet::$name::$fqdn":
- target => "/etc/dsa/postgresql-backup/sshkeys-sources",
- content => @("EOF"),
- ${::hostname} ${ipaddr} ${::postgresql_key}
- | EOF
- tag => "postgresql::server::backup-source-sshkey",
- }
- }
-
- $db_backup_role = 'debian-backup'
- $db_backup_role_password = hkdf('/etc/puppet/secret', "postgresql-${::hostname}-${postgresql::params::port}-backup_role}")
-
- # XXX - get these from the roles and ldap
- $db_backup_hosts = ['5.153.231.12/32', '93.94.130.161/32', '2001:41c8:1000:21::21:12/128', '2a02:158:380:280::161/128']