diff options
author | Michael Scherer <misc@mageia.org> | 2011-02-15 00:48:25 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2011-02-15 00:48:25 +0000 |
commit | ad1cd49ae663525cfb99ba00078d71cc56303f77 (patch) | |
tree | 954f04eb73a04fbcceea3e42f11898214a8876e6 /modules/phpbb | |
parent | b8481f2561b8de21892e3f4b1914193d54ac4c93 (diff) | |
download | puppet-ad1cd49ae663525cfb99ba00078d71cc56303f77.tar puppet-ad1cd49ae663525cfb99ba00078d71cc56303f77.tar.gz puppet-ad1cd49ae663525cfb99ba00078d71cc56303f77.tar.bz2 puppet-ad1cd49ae663525cfb99ba00078d71cc56303f77.tar.xz puppet-ad1cd49ae663525cfb99ba00078d71cc56303f77.zip |
deploy ldap config into phpbb database
Diffstat (limited to 'modules/phpbb')
-rw-r--r-- | modules/phpbb/manifests/init.pp | 29 |
1 files 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, |