From: Peter Palfrader Date: Fri, 1 Sep 2017 09:19:51 +0000 (+0000) Subject: Create .nobackup flag in non-hardcoded datadir X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=b75dd5fcce98ce6356eab26c66ecbc1472044783;p=mirror%2Fdsa-puppet.git Create .nobackup flag in non-hardcoded datadir --- 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 => "" } }