Try to avoid reserved site keyword
[mirror/dsa-puppet.git] / modules / postgres / manifests / backup_server / register_backup_clienthost.pp
1 #
2 define postgres::backup_server::register_backup_clienthost (
3   $sshpubkey = $::postgres_key,
4   $ipaddrlist = join(getfromhash($deprecated::nodeinfo, 'ldap', 'ipHostNumber'), ","),
5   $hostname = $::hostname,
6 ) {
7   include postgres::backup_server::globals
8
9   if $sshpubkey {
10     $addr = assert_type(String[1], $ipaddrlist)
11     @@concat::fragment { "postgresql::server::backup-source-clienthost::$name::$fqdn":
12       target => $postgres::backup_server::globals::sshkeys_sources ,
13       content  => @("EOF"),
14           ${hostname} ${addr} ${sshpubkey}
15           | EOF
16       tag     => $postgres::backup_server::globals::tag_source_sshkey,
17     }
18   }
19 }