aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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":