diff options
author | Michael Scherer <misc@mageia.org> | 2011-06-16 22:18:02 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-06-16 22:18:02 +0000 |
commit | 43891084b00f011f7d8cbbb10899015f2c65253d (patch) | |
tree | 7a42a75cb9876140269512803658c135c9d4971f /modules/mediawiki/manifests/init.pp | |
parent | a0dc2f65935e19a706a9872f13e9dd0271ecf1b0 (diff) | |
download | puppet-43891084b00f011f7d8cbbb10899015f2c65253d.tar puppet-43891084b00f011f7d8cbbb10899015f2c65253d.tar.gz puppet-43891084b00f011f7d8cbbb10899015f2c65253d.tar.bz2 puppet-43891084b00f011f7d8cbbb10899015f2c65253d.tar.xz puppet-43891084b00f011f7d8cbbb10899015f2c65253d.zip |
trigger the creation of the table once the database have been created
Diffstat (limited to 'modules/mediawiki/manifests/init.pp')
-rw-r--r-- | modules/mediawiki/manifests/init.pp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/mediawiki/manifests/init.pp b/modules/mediawiki/manifests/init.pp index be4bf6c5..fc7888d2 100644 --- a/modules/mediawiki/manifests/init.pp +++ b/modules/mediawiki/manifests/init.pp @@ -76,6 +76,13 @@ class mediawiki { postgresql::database { "$db_name": user => $db_user, + callback_notify => Exec["deploy_db $name"], + } + + exec { "deploy_db $name": + cmd => "php /usr/local/bin/init_wiki.php $wiki_root", + refreshonly => true, + onlyif => "test -d $wiki_root/config", } file { "$wiki_root/LocalSettings.php": |