OLD | NEW |
1 class trac( | 1 class trac( |
2 $domain, | 2 $domain, |
| 3 $certificate, |
| 4 $private_key, |
3 $is_default = false) inherits private::trac { | 5 $is_default = false) inherits private::trac { |
4 package {['python-mysqldb','python-pip','subversion', 'tofrodos', 'graphviz']: | 6 package {['python-mysqldb','python-pip','subversion', 'tofrodos', 'graphviz']: |
5 ensure => present | 7 ensure => present |
6 } | 8 } |
7 | 9 |
8 include nginx, spawn-fcgi | 10 include nginx, spawn-fcgi |
9 | 11 |
10 nginx::hostconfig {$domain: | 12 nginx::hostconfig {$domain: |
11 source => 'puppet:///modules/trac/site.conf', | 13 source => 'puppet:///modules/trac/site.conf', |
12 is_default => $is_default, | 14 is_default => $is_default, |
13 certificate => 'adblockplus.org_sslcert.pem', | 15 certificate => $certificate, |
14 private_key => 'adblockplus.org_sslcert.key', | 16 private_key => $private_key, |
15 log => 'access_log_trac' | 17 log => 'access_log_trac' |
16 } | 18 } |
17 | 19 |
18 user {'trac': | 20 user {'trac': |
19 ensure => present, | 21 ensure => present, |
20 comment => 'User of the trac installation', | 22 comment => 'User of the trac installation', |
21 home => '/home/trac', | 23 home => '/home/trac', |
22 managehome => true | 24 managehome => true |
23 } | 25 } |
24 | 26 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 require => Exec['deploy'], | 160 require => Exec['deploy'], |
159 } | 161 } |
160 | 162 |
161 file {"/home/trac/permissions.csv": | 163 file {"/home/trac/permissions.csv": |
162 ensure => present, | 164 ensure => present, |
163 owner => trac, | 165 owner => trac, |
164 source => 'puppet:///modules/trac/permissions.csv' | 166 source => 'puppet:///modules/trac/permissions.csv' |
165 } | 167 } |
166 | 168 |
167 } | 169 } |
OLD | NEW |