1 class role::backup::postgresql inherits role::backup {
2 ensure_packages(["postgresql"])
4 $pg_backup_hosts = lookup("role::backup::postgresql::backup_hosts", { "default_value" => {} })
6 $pg_backup_hosts.each |$backup_host_cn, $pg_infos| {
7 profile::postgresql::backup_replication { $backup_host_cn:
8 base_path => $mountpoint,
12 if $pg_infos["pgbouncer"] {
13 profile::postgresql::backup_pgbouncer { $backup_host_cn:
14 base_path => $mountpoint,
15 pg_infos => $pg_infos,