diff options
author | Michael Scherer <misc@mageia.org> | 2011-02-12 14:03:29 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-02-12 14:03:29 +0000 |
commit | 68d8fa74b8429f87650573be8e0e3b82948f754f (patch) | |
tree | 55439b900c03f688291518f467462efdbc5ed686 /modules/postgresql | |
parent | 24aa153210c0c1fedbff72a23ca420294f9d9cb7 (diff) | |
download | puppet-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.pp | 2 |
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'], } } } |