diff options
author | Michael Scherer <misc@mageia.org> | 2012-03-19 17:57:29 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2012-03-19 17:57:29 +0000 |
commit | 20aa87e3809cdadc2b9bb71d9cb618267b551b0b (patch) | |
tree | a9dd2999764c61b74dd89c7121d817dfc8ff8097 /modules/phpbb | |
parent | 7f6682cfb0639fe64b8ac79554b9d3164c462b36 (diff) | |
download | puppet-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.pp | 3 | ||||
-rw-r--r-- | modules/phpbb/manifests/init.pp | 1 | ||||
-rw-r--r-- | modules/phpbb/manifests/locale_db.pp | 11 | ||||
-rw-r--r-- | modules/phpbb/manifests/redirection_instance.pp | 7 |
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'], + } +} |