From ad1cd49ae663525cfb99ba00078d71cc56303f77 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 15 Feb 2011 00:48:25 +0000 Subject: deploy ldap config into phpbb database --- modules/phpbb/manifests/init.pp | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/modules/phpbb/manifests/init.pp b/modules/phpbb/manifests/init.pp index 1d4bfbe5..514d382b 100644 --- a/modules/phpbb/manifests/init.pp +++ b/modules/phpbb/manifests/init.pp @@ -19,10 +19,8 @@ class phpbb { source => 'puppet:///modules/phpbb/phpbb_apply_config.pl', } - # TODO ldap account configuration - # ldap_user - # ldap_server - # ldap_password ldap_base_dn cookie_domain + # TODO phpbb config + # cookie_domain # board_contact # define phpbb_config($value) { @@ -33,8 +31,29 @@ class phpbb { } } - # TODO git checkout + phpbb_config { "ldap_user": + value => "ou=People,$dc_suffix", + value => "cn=phpbb-friteuse,ou=System Accounts,$dc_suffix", + } + + phpbb_config { "ldap_server": + value => "ldap.$domain", + } + + $ldap_password = extlookup("phpbb_ldap",'x') + phpbb_config { "ldap_password": + value => $ldap_password, + } + + phpbb_config { "ldap_base_dn": + value => "ou=People,$dc_suffix", + } + + + + # TODO git checkout of the code + # TODO phpbb database configuration $pgsql_password = extlookup("phpbb_pgsql",'x') @@postgresql::user { $user: password => $pgsql_password, -- cgit v1.2.1