aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mediawiki
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-06-16 22:18:02 +0000
committerMichael Scherer <misc@mageia.org>2011-06-16 22:18:02 +0000
commit43891084b00f011f7d8cbbb10899015f2c65253d (patch)
tree7a42a75cb9876140269512803658c135c9d4971f /modules/mediawiki
parenta0dc2f65935e19a706a9872f13e9dd0271ecf1b0 (diff)
downloadpuppet-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')
-rw-r--r--modules/mediawiki/manifests/init.pp7
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":