Move backup role name to hiera
authorPeter Palfrader <peter@palfrader.org>
Sat, 28 Sep 2019 18:30:27 +0000 (20:30 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sat, 28 Sep 2019 18:30:27 +0000 (20:30 +0200)
data/common.yaml
modules/postgres/manifests/backup_cluster.pp

index 3e45e09..a4f5e82 100644 (file)
@@ -30,6 +30,7 @@ roles::dns_primary::allow_access:
   - '194.146.105.25'
   - '2a01:3f0:0:27::24'
   - '2a01:3f0:0:28::25'
+postgres::backup_cluster::db_backup_role: debian-backup
 # bacula
 #
 bacula::email_all: 'bacula-reports@admin.debian.org'
index 10a4346..bb61e93 100644 (file)
@@ -1,9 +1,9 @@
 #
 define postgres::backup_cluster(
   String $pg_version,
+  String $db_backup_role,
   String $pg_cluster = 'main',
   Integer $pg_port = 5432,
-  String $db_backup_role = 'debian-backup',
   String $db_backup_role_password = hkdf('/etc/puppet/secret', "postgresql-${::hostname}-${$pg_cluster}-${pg_port}-backup_role}"),
   Boolean $do_role = false,
   Boolean $do_hba = false,