summaryrefslogtreecommitdiffstats
path: root/tozt
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-10-27 09:08:16 -0400
committerJesse Luehrs <doy@tozt.net>2018-10-27 09:08:16 -0400
commitbe27a5ae643cf25e9a0675836adad1ac2b2f1fd4 (patch)
treef347b87c403b5cae1e44ecb2209c868aa6aa635f /tozt
parent0a127f861e82227b4915c294f9e325216e0333f1 (diff)
downloadpuppet-tozt-be27a5ae643cf25e9a0675836adad1ac2b2f1fd4.tar.gz
puppet-tozt-be27a5ae643cf25e9a0675836adad1ac2b2f1fd4.zip
create the data directory before initializing it
Diffstat (limited to 'tozt')
-rw-r--r--tozt/ttrss/manifests/init.pp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tozt/ttrss/manifests/init.pp b/tozt/ttrss/manifests/init.pp
index 049fd58..7a1ccdf 100644
--- a/tozt/ttrss/manifests/init.pp
+++ b/tozt/ttrss/manifests/init.pp
@@ -45,7 +45,10 @@ class ttrss($dbpath) {
command => "/usr/bin/initdb -D $dbpath/data",
user => 'postgres',
creates => "$dbpath/data/PG_VERSION",
- require => Package["postgresql"];
+ require => [
+ File[$dbpath],
+ Package["postgresql"],
+ ];
}
service { "postgresql":