From b75dd5fcce98ce6356eab26c66ecbc1472044783 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 1 Sep 2017 09:19:51 +0000 Subject: [PATCH] Create .nobackup flag in non-hardcoded datadir --- modules/salsa/manifests/database.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/salsa/manifests/database.pp b/modules/salsa/manifests/database.pp index 7323560d6..97c5bc4d0 100644 --- a/modules/salsa/manifests/database.pp +++ b/modules/salsa/manifests/database.pp @@ -18,8 +18,8 @@ class salsa::database inherits salsa { require => Class['postgresql::server::contrib'], } - # XXX set up backups - file { "/var/lib/postgresql/9.6/main/.nobackup": + $datadir = assert_type(String[1], $postgresql::params::datadir) + file { "${datadir}/.nobackup": content => "" } } -- 2.20.1