aboutsummaryrefslogtreecommitdiffstats
path: root/modules/phpbb/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/phpbb/manifests/init.pp')
-rw-r--r--modules/phpbb/manifests/init.pp22
1 files changed, 21 insertions, 1 deletions
diff --git a/modules/phpbb/manifests/init.pp b/modules/phpbb/manifests/init.pp
index 533a4304..1d4bfbe5 100644
--- a/modules/phpbb/manifests/init.pp
+++ b/modules/phpbb/manifests/init.pp
@@ -11,7 +11,27 @@ class phpbb {
# TODO ldap account configuration
- # TODO apache setup
+ file { "/usr/local/bin/phpbb_apply_config.pl":
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 755,
+ source => 'puppet:///modules/phpbb/phpbb_apply_config.pl',
+ }
+
+ # TODO ldap account configuration
+ # ldap_user
+ # ldap_server
+ # ldap_password ldap_base_dn cookie_domain
+ # board_contact
+ #
+ define phpbb_config($value) {
+ exec { "/usr/local/bin/phpbb_apply_config.pl $name":
+ user => root,
+ environment => "PGDATABASE=$database PGUSER=$user PGPASSWORD=$password PGHOST=pgsql.$domain VALUE=$value",
+ require => File["/usr/local/bin/phpbb_apply_config.pl"],
+ }
+ }
# TODO git checkout