aboutsummaryrefslogtreecommitdiffstats
path: root/modules/postgresql
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-02-12 14:03:29 +0000
committerMichael Scherer <misc@mageia.org>2011-02-12 14:03:29 +0000
commit68d8fa74b8429f87650573be8e0e3b82948f754f (patch)
tree55439b900c03f688291518f467462efdbc5ed686 /modules/postgresql
parent24aa153210c0c1fedbff72a23ca420294f9d9cb7 (diff)
downloadpuppet-68d8fa74b8429f87650573be8e0e3b82948f754f.tar
puppet-68d8fa74b8429f87650573be8e0e3b82948f754f.tar.gz
puppet-68d8fa74b8429f87650573be8e0e3b82948f754f.tar.bz2
puppet-68d8fa74b8429f87650573be8e0e3b82948f754f.tar.xz
puppet-68d8fa74b8429f87650573be8e0e3b82948f754f.zip
- fix ordering, as the exec will fail if postgresql is not running
(errors seen when restarting a vm cloning alamut on kvm)
Diffstat (limited to 'modules/postgresql')
-rw-r--r--modules/postgresql/manifests/init.pp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/postgresql/manifests/init.pp b/modules/postgresql/manifests/init.pp
index 176a81dc..a01c1093 100644
--- a/modules/postgresql/manifests/init.pp
+++ b/modules/postgresql/manifests/init.pp
@@ -92,6 +92,7 @@ class postgresql {
exec { "createdb -O $user -U postgres $name '$description'":
user => root,
unless => "psql -A -t -U postgres -l | grep '^$name|'",
+ require => Service['postgresql'],
}
}
@@ -104,6 +105,7 @@ class postgresql {
user => root,
environment => "pass=$password",
unless => "psql -A -t -U postgres -c '\du $name' | grep '$name'",
+ require => Service['postgresql'],
}
}
}