From 20aa87e3809cdadc2b9bb71d9cb618267b551b0b Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Mon, 19 Mar 2012 17:57:29 +0000 Subject: split php into seperate file --- modules/phpbb/manifests/databases.pp | 3 +++ modules/phpbb/manifests/init.pp | 1 + modules/phpbb/manifests/locale_db.pp | 11 +++++++++++ modules/phpbb/manifests/redirection_instance.pp | 7 +++++++ 4 files changed, 22 insertions(+) create mode 100644 modules/phpbb/manifests/databases.pp create mode 100644 modules/phpbb/manifests/init.pp create mode 100644 modules/phpbb/manifests/locale_db.pp create mode 100644 modules/phpbb/manifests/redirection_instance.pp (limited to 'modules/phpbb') 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'], + } +} -- cgit v1.2.1