aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/mediawiki/manifests/init.pp27
1 files changed, 27 insertions, 0 deletions
diff --git a/modules/mediawiki/manifests/init.pp b/modules/mediawiki/manifests/init.pp
new file mode 100644
index 00000000..956fa014
--- /dev/null
+++ b/modules/mediawiki/manifests/init.pp
@@ -0,0 +1,27 @@
+class mediawiki {
+ class base {
+ package { "mediawiki":
+ ensure => installed,
+ }
+
+ $pgsql_password = extlookup("mediawiki_pgsql",'x')
+ @@postgresql::user { $user:
+ password => $pgsql_password,
+ }
+
+ # TODO create the ldap user
+ $ldap_password = extlookup('mediawiki_ldap','x')
+
+ # TODO write the web configuration
+
+ # add index.php
+ }
+
+ # do wiki basic installation
+
+ define instance {
+ # define a db per instance
+ # install / link source code
+ # add config file
+ }
+}