/[adm]/puppet/modules/phpbb/manifests/init.pp
ViewVC logotype

Annotation of /puppet/modules/phpbb/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1075 - (hide annotations) (download)
Tue Feb 15 00:48:25 2011 UTC (13 years, 2 months ago) by misc
File size: 1669 byte(s)
deploy ldap config into phpbb database
1 misc 1053 class phpbb {
2 misc 1073 $database = "phpbb"
3     $user = "phpbb"
4 misc 1053
5     include apache::mod_php
6     include mysql
7    
8 dmorgan 1060 package { ["php-gd","php-xml","php-zlib","php-ftp","php-magickwand" ] :
9 misc 1053 ensure => installed
10     }
11    
12     # TODO ldap account configuration
13    
14 misc 1074 file { "/usr/local/bin/phpbb_apply_config.pl":
15     ensure => present,
16     owner => root,
17     group => root,
18     mode => 755,
19     source => 'puppet:///modules/phpbb/phpbb_apply_config.pl',
20     }
21 misc 1053
22 misc 1075 # TODO phpbb config
23     # cookie_domain
24 misc 1074 # board_contact
25     #
26     define phpbb_config($value) {
27     exec { "/usr/local/bin/phpbb_apply_config.pl $name":
28     user => root,
29     environment => "PGDATABASE=$database PGUSER=$user PGPASSWORD=$password PGHOST=pgsql.$domain VALUE=$value",
30     require => File["/usr/local/bin/phpbb_apply_config.pl"],
31     }
32     }
33    
34 misc 1075 phpbb_config { "ldap_user":
35     value => "ou=People,$dc_suffix",
36     value => "cn=phpbb-friteuse,ou=System Accounts,$dc_suffix",
37     }
38 misc 1053
39 misc 1075 phpbb_config { "ldap_server":
40     value => "ldap.$domain",
41     }
42    
43     $ldap_password = extlookup("phpbb_ldap",'x')
44     phpbb_config { "ldap_password":
45     value => $ldap_password,
46     }
47    
48     phpbb_config { "ldap_base_dn":
49     value => "ou=People,$dc_suffix",
50     }
51    
52    
53    
54     # TODO git checkout of the code
55    
56     # TODO phpbb database configuration
57 misc 1072 $pgsql_password = extlookup("phpbb_pgsql",'x')
58 misc 1073 @@postgresql::user { $user:
59 misc 1072 password => $pgsql_password,
60     }
61 misc 1053
62 misc 1073 @@postgresql::database { $database:
63 misc 1072 description => "Phpbb database",
64 misc 1073 user => $user,
65     require => Postgresql::User[$user]
66 misc 1072 }
67 misc 1053 }

  ViewVC Help
Powered by ViewVC 1.1.30