From: Ismaƫl Bouya Date: Sun, 22 Apr 2018 19:48:22 +0000 (+0200) Subject: Add replication slot for cryptoportfolio postgresql X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;ds=sidebyside;h=acd2cd43b6fff9bcd2c7804767f838684c3cfd1e;p=perso%2FImmae%2FProjets%2FPuppet.git Add replication slot for cryptoportfolio postgresql --- diff --git a/modules/role/manifests/cryptoportfolio/postgresql.pp b/modules/role/manifests/cryptoportfolio/postgresql.pp index 38661a8..5db5e25 100644 --- a/modules/role/manifests/cryptoportfolio/postgresql.pp +++ b/modules/role/manifests/cryptoportfolio/postgresql.pp @@ -30,6 +30,10 @@ class role::cryptoportfolio::postgresql inherits role::cryptoportfolio { require => [Letsencrypt::Certonly[$web_host], File["/var/lib/postgres/data/certs"]] } + postgresql_replication_slot { $pg_user_replication: + ensure => present + } + postgresql::server::config_entry { "wal_level": value => "logical", }