projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1593d7
)
Create .nobackup flag in non-hardcoded datadir
author
Peter Palfrader
<peter@palfrader.org>
Fri, 1 Sep 2017 09:19:51 +0000
(09:19 +0000)
committer
Peter Palfrader
<peter@palfrader.org>
Fri, 1 Sep 2017 09:19:51 +0000
(09:19 +0000)
modules/salsa/manifests/database.pp
patch
|
blob
|
history
diff --git
a/modules/salsa/manifests/database.pp
b/modules/salsa/manifests/database.pp
index
7323560
..
97c5bc4
100644
(file)
--- 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 => ""
}
}