aboutsummaryrefslogtreecommitdiffstats
path: root/modules/phpbb
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-03-19 17:57:29 +0000
committerMichael Scherer <misc@mageia.org>2012-03-19 17:57:29 +0000
commit20aa87e3809cdadc2b9bb71d9cb618267b551b0b (patch)
treea9dd2999764c61b74dd89c7121d817dfc8ff8097 /modules/phpbb
parent7f6682cfb0639fe64b8ac79554b9d3164c462b36 (diff)
downloadpuppet-20aa87e3809cdadc2b9bb71d9cb618267b551b0b.tar
puppet-20aa87e3809cdadc2b9bb71d9cb618267b551b0b.tar.gz
puppet-20aa87e3809cdadc2b9bb71d9cb618267b551b0b.tar.bz2
puppet-20aa87e3809cdadc2b9bb71d9cb618267b551b0b.tar.xz
puppet-20aa87e3809cdadc2b9bb71d9cb618267b551b0b.zip
split php into seperate file
Diffstat (limited to 'modules/phpbb')
-rw-r--r--modules/phpbb/manifests/databases.pp3
-rw-r--r--modules/phpbb/manifests/init.pp1
-rw-r--r--modules/phpbb/manifests/locale_db.pp11
-rw-r--r--modules/phpbb/manifests/redirection_instance.pp7
4 files changed, 22 insertions, 0 deletions
diff --git a/modules/phpbb/manifests/databases.pp b/modules/phpbb/manifests/databases.pp
new file mode 100644
index 00000000..dc255f75
--- /dev/null
+++ b/modules/phpbb/manifests/databases.pp
@@ -0,0 +1,3 @@
+define phpbb::databases() {
+ Phpbb::Locale_db <<| |>>
+}
diff --git a/modules/phpbb/manifests/init.pp b/modules/phpbb/manifests/init.pp
new file mode 100644
index 00000000..ccfa0ca2
--- /dev/null
+++ b/modules/phpbb/manifests/init.pp
@@ -0,0 +1 @@
+class phpbb { }
diff --git a/modules/phpbb/manifests/locale_db.pp b/modules/phpbb/manifests/locale_db.pp
new file mode 100644
index 00000000..57ab360a
--- /dev/null
+++ b/modules/phpbb/manifests/locale_db.pp
@@ -0,0 +1,11 @@
+define locale_db($tag = 'default',
+ $user = $phpbb::base::user) {
+ postgresql::database { $name:
+ description => "$lang db for phpbb forum",
+ user => $user,
+ tag => $tag,
+# this break due to the way it is remotely declared
+# this should only be a issue in case of bootstrapping again
+# require => Postgresql::User[$user]
+ }
+}
diff --git a/modules/phpbb/manifests/redirection_instance.pp b/modules/phpbb/manifests/redirection_instance.pp
new file mode 100644
index 00000000..48446d3e
--- /dev/null
+++ b/modules/phpbb/manifests/redirection_instance.pp
@@ -0,0 +1,7 @@
+define phpbb::redirection_instance($url) {
+ $lang = $name
+ file { "/etc/httpd/conf/vhosts.d/forums.d/redirect_$name.conf":
+ content => template('phpbb/forums_redirect.conf'),
+ notify => Exec['service httpd configtest'],
+ }
+}