/[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 1420 by misc, Tue Mar 29 20:15:08 2011 UTC revision 1526 by misc, Mon Apr 18 10:14:34 2011 UTC
# Line 64  class phpbb { Line 64  class phpbb {
64          }          }
65      }      }
66    
     define apache_writable_dir() {  
         file { "$forums_dir/$lang/phpBB/$name":  
             ensure => directory,  
             owner => apache,  
             group => root,  
             mode => 755,  
             require => Exec["git_clone $lang"],  
         }  
     }  
   
67      # TODO find a way to avoid all the phpbb::base prefix      # TODO find a way to avoid all the phpbb::base prefix
68      define instance() {      define instance() {
69          include phpbb::base          include phpbb::base
# Line 104  class phpbb { Line 94  class phpbb {
94    
95          # list found by reading ./install/install_install.php          # list found by reading ./install/install_install.php
96          # end of check_server_requirements ( 2 loops )          # end of check_server_requirements ( 2 loops )
97          apache_writable_dir { ['cache',          
98                           'images/avatars/upload',          $writable_dirs = ['cache',
99                           'files',                  'images/avatars/upload',
100                           'store' ]:                  'files',
101                    'store' ]
102            
103            $dir_names = regsubst($writable_dirs,'^',"$forums_dir/$lang/phpBB/")
104    
105            file { $dir_names:
106                ensure => directory,
107                owner => apache,
108                group => root,
109                mode => 755,
110                require => Exec["git_clone $lang"],
111          }          }
112    
113          file { "$forums_dir/$lang/phpBB/config.php":          file { "$forums_dir/$lang/phpBB/config.php":

Legend:
Removed from v.1420  
changed lines
  Added in v.1526

  ViewVC Help
Powered by ViewVC 1.1.30