/[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 1090 - (hide annotations) (download)
Tue Feb 15 16:39:23 2011 UTC (13 years, 2 months ago) by misc
File size: 1659 byte(s)
fix the variable to use for connecting
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 misc 1086 package { "perl-DBD-Pg":
13     ensure => installed
14     }
15 misc 1053
16 misc 1074 file { "/usr/local/bin/phpbb_apply_config.pl":
17     ensure => present,
18     owner => root,
19     group => root,
20     mode => 755,
21     source => 'puppet:///modules/phpbb/phpbb_apply_config.pl',
22     }
23 misc 1053
24 misc 1075 # TODO phpbb config
25     # cookie_domain
26 misc 1074 # board_contact
27     #
28     define phpbb_config($value) {
29     exec { "/usr/local/bin/phpbb_apply_config.pl $name":
30     user => root,
31 misc 1090 environment => "PGDATABASE=$database PGUSER=$user PGPASSWORD=$pgsql_password PGHOST=pgsql.$domain VALUE=$value",
32 misc 1074 require => File["/usr/local/bin/phpbb_apply_config.pl"],
33     }
34     }
35    
36 misc 1075 phpbb_config { "ldap_user":
37     value => "cn=phpbb-friteuse,ou=System Accounts,$dc_suffix",
38     }
39 misc 1053
40 misc 1075 phpbb_config { "ldap_server":
41     value => "ldap.$domain",
42     }
43    
44     $ldap_password = extlookup("phpbb_ldap",'x')
45     phpbb_config { "ldap_password":
46     value => $ldap_password,
47     }
48    
49     phpbb_config { "ldap_base_dn":
50     value => "ou=People,$dc_suffix",
51     }
52    
53    
54    
55     # TODO git checkout of the code
56    
57     # TODO phpbb database configuration
58 misc 1072 $pgsql_password = extlookup("phpbb_pgsql",'x')
59 misc 1073 @@postgresql::user { $user:
60 misc 1072 password => $pgsql_password,
61     }
62 misc 1053
63 misc 1073 @@postgresql::database { $database:
64 misc 1072 description => "Phpbb database",
65 misc 1073 user => $user,
66     require => Postgresql::User[$user]
67 misc 1072 }
68 misc 1053 }

  ViewVC Help
Powered by ViewVC 1.1.30