diff --git a/manifests/postgres.pp b/manifests/postgres.pp index 7849a07..7ff7929 100644 --- a/manifests/postgres.pp +++ b/manifests/postgres.pp @@ -299,9 +299,14 @@ default => $password, } + $archive_mode = $archiver ? { + true => 'on', + default => 'off', + } + # Configure PostgreSQL server for archive mode postgresql::server::config_entry { - 'archive_mode': value => 'on'; + 'archive_mode': value => $archive_mode; 'wal_level': value => $wal_level; }