From acd2cd43b6fff9bcd2c7804767f838684c3cfd1e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Sun, 22 Apr 2018 21:48:22 +0200 Subject: [PATCH] Add replication slot for cryptoportfolio postgresql --- modules/role/manifests/cryptoportfolio/postgresql.pp | 4 ++++ 1 file changed, 4 insertions(+) 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", } -- 2.41.0