diff options
Diffstat (limited to 'modules/profile/manifests/postgresql_master.pp')
-rw-r--r-- | modules/profile/manifests/postgresql_master.pp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/profile/manifests/postgresql_master.pp b/modules/profile/manifests/postgresql_master.pp index e28c1b0..3de4f22 100644 --- a/modules/profile/manifests/postgresql_master.pp +++ b/modules/profile/manifests/postgresql_master.pp | |||
@@ -2,14 +2,16 @@ define profile::postgresql_master ( | |||
2 | $letsencrypt_host = undef, | 2 | $letsencrypt_host = undef, |
3 | $backup_hosts = [], | 3 | $backup_hosts = [], |
4 | ) { | 4 | ) { |
5 | profile::postgresql::ssl { "/var/lib/postgres": | 5 | profile::postgresql::ssl { "/var/lib/postgres/data": |
6 | cert => "/etc/letsencrypt/live/$letsencrypt_host/cert.pem", | 6 | cert => "/etc/letsencrypt/live/$letsencrypt_host/cert.pem", |
7 | key => "/etc/letsencrypt/live/$letsencrypt_host/privkey.pem", | 7 | key => "/etc/letsencrypt/live/$letsencrypt_host/privkey.pem", |
8 | require => Letsencrypt::Certonly[$letsencrypt_host], | 8 | require => Letsencrypt::Certonly[$letsencrypt_host], |
9 | handle_config_entry => true, | ||
9 | } | 10 | } |
10 | 11 | ||
11 | $backup_hosts.each |$backup_host| { | 12 | $backup_hosts.each |$backup_host| { |
12 | profile::postgresql::replication { $backup_host: | 13 | profile::postgresql::replication { $backup_host: |
14 | handle_config => true, | ||
13 | handle_role => true, | 15 | handle_role => true, |
14 | handle_slot => true, | 16 | handle_slot => true, |
15 | add_self_role => true, | 17 | add_self_role => true, |