blob: 8a65dec6802c7ebf45728be037f2bded7a0b29ce (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
class role::backup::postgresql inherits role::backup {
ensure_packages(["postgresql"])
$pg_backup_hosts = lookup("role::backup::postgresql::backup_hosts", { "default_value" => {} })
$pg_backup_hosts.each |$backup_host_cn, $pg_infos| {
profile::postgresql::backup_replication { $backup_host_cn:
base_path => $mountpoint,
pg_infos => $pg_infos,
}
if $pg_infos["pgbouncer"] {
profile::postgresql::backup_pgbouncer { $backup_host_cn:
base_path => $mountpoint,
pg_infos => $pg_infos,
}
}
}
}
|