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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1151 by misc, Mon Feb 21 15:14:52 2011 UTC revision 1152 by misc, Mon Feb 21 15:14:53 2011 UTC
# Line 26  class phpbb { Line 26  class phpbb {
26          # cookie_domain          # cookie_domain
27          # board_contact          # board_contact
28          #          #
         define phpbb_config($value) {  
             exec { "/usr/local/bin/phpbb_apply_config.pl $name":  
                 user => root,  
                 environment => ["PGDATABASE=$database", "PGUSER=$user", "PGPASSWORD=$pgsql_password", "PGHOST=pgsql.$domain", "VALUE=$value"],  
                 require => File["/usr/local/bin/phpbb_apply_config.pl"],  
             }  
         }  
   
29          $pgsql_password = extlookup("phpbb_pgsql",'x')          $pgsql_password = extlookup("phpbb_pgsql",'x')
30          @@postgresql::user { $user:          @@postgresql::user { $user:
31              password => $pgsql_password,              password => $pgsql_password,
# Line 47  class phpbb { Line 39  class phpbb {
39          }          }
40      }      }
41    
42        define phpbb_config($value) {
43            exec { "/usr/local/bin/phpbb_apply_config.pl $name":
44                user => root,
45                environment => ["PGDATABASE=$phpbb::base::database",
46                                "PGUSER=$phpbb::base::user",
47                                "PGPASSWORD=$phpbb::base::pgsql_password",
48                                "PGHOST=pgsql.$domain",
49                                "VALUE=$value"],
50                require => File["/usr/local/bin/phpbb_apply_config.pl"],
51            }
52        }
53    
54      # TODO find a way to avoid all the phpbb::base prefix      # TODO find a way to avoid all the phpbb::base prefix
55      define instance() {      define instance() {

Legend:
Removed from v.1151  
changed lines
  Added in v.1152

  ViewVC Help
Powered by ViewVC 1.1.30