OLD | NEW |
1 class trac( | 1 class trac( |
2 $domain, | 2 $domain, |
3 $is_default = false) inherits private::trac { | 3 $is_default = false) inherits private::trac { |
4 package {['python-mysqldb','python-pip','subversion', 'tofrodos', 'graphviz']: | 4 package {['python-mysqldb','python-pip','subversion', 'tofrodos', 'graphviz']: |
5 ensure => present | 5 ensure => present |
6 } | 6 } |
7 | 7 |
8 include nginx, spawn-fcgi | 8 include nginx, spawn-fcgi |
9 | 9 |
10 file {'/etc/nginx/adblockplus.org_sslcert.key': | |
11 ensure => file, | |
12 owner => root, | |
13 mode => 0644, | |
14 notify => Service['nginx'], | |
15 before => Nginx::Hostconfig[$domain], | |
16 require => Package['nginx'], | |
17 source => 'puppet:///modules/private/adblockplus.org_sslcert.key' | |
18 } | |
19 | |
20 file {'/etc/nginx/adblockplus.org_sslcert.pem': | |
21 ensure => file, | |
22 owner => root, | |
23 mode => 0400, | |
24 notify => Service['nginx'], | |
25 before => Nginx::Hostconfig[$domain], | |
26 require => Package['nginx'], | |
27 source => 'puppet:///modules/private/adblockplus.org_sslcert.pem' | |
28 } | |
29 | |
30 nginx::hostconfig {$domain: | 10 nginx::hostconfig {$domain: |
31 content => template('trac/site.erb'), | 11 source => 'puppet:///modules/trac/site.conf', |
32 enabled => true | 12 is_default => $is_default, |
| 13 certificate => 'adblockplus.org_sslcert.pem', |
| 14 private_key => 'adblockplus.org_sslcert.key', |
| 15 log => 'access_log_trac' |
33 } | 16 } |
34 | 17 |
35 user {'trac': | 18 user {'trac': |
36 ensure => present, | 19 ensure => present, |
37 comment => 'User of the trac installation', | 20 comment => 'User of the trac installation', |
38 home => '/home/trac', | 21 home => '/home/trac', |
39 managehome => true | 22 managehome => true |
40 } | 23 } |
41 | 24 |
42 class {'mysql::server': | 25 class {'mysql::server': |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 require => Exec['deploy'], | 158 require => Exec['deploy'], |
176 } | 159 } |
177 | 160 |
178 file {"/home/trac/permissions.csv": | 161 file {"/home/trac/permissions.csv": |
179 ensure => present, | 162 ensure => present, |
180 owner => trac, | 163 owner => trac, |
181 source => 'puppet:///modules/trac/permissions.csv' | 164 source => 'puppet:///modules/trac/permissions.csv' |
182 } | 165 } |
183 | 166 |
184 } | 167 } |
OLD | NEW |