OLD | NEW |
1 class trac( | 1 class trac( |
2 $domain, | 2 $domain, |
3 $certificate, | 3 $certificate, |
4 $private_key, | 4 $private_key, |
5 $fcgi_config_dir = '/etc/nginx/trac.d', | 5 $fcgi_config_dir = '/etc/nginx/trac.d', |
6 $is_default = false) inherits private::trac { | 6 $is_default = false) inherits private::trac { |
7 | 7 |
8 package {['python-mysqldb','python-pip','subversion', 'tofrodos', 'graphviz']: | 8 package {['python-mysqldb','python-pip','subversion', 'tofrodos', 'graphviz']: |
9 ensure => present | 9 ensure => present |
10 } | 10 } |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 unless => "python -c 'import privatetickets'", | 120 unless => "python -c 'import privatetickets'", |
121 } | 121 } |
122 | 122 |
123 file { '/home/trac/trac.ini': | 123 file { '/home/trac/trac.ini': |
124 ensure => present, | 124 ensure => present, |
125 source => 'puppet:///modules/trac/trac.ini', | 125 source => 'puppet:///modules/trac/trac.ini', |
126 owner => 'trac', | 126 owner => 'trac', |
127 mode => 644, | 127 mode => 644, |
128 } | 128 } |
129 | 129 |
| 130 file {'/home/trac/robots.txt': |
| 131 ensure => 'present', |
| 132 source => 'puppet:///modules/trac/robots.txt', |
| 133 owner => 'trac', |
| 134 mode => 644, |
| 135 } |
| 136 |
130 define instance ( | 137 define instance ( |
131 $config = 'trac/trac.ini.erb', | 138 $config = 'trac/trac.ini.erb', |
132 $description = 'Issue Tracker', | 139 $description = 'Issue Tracker', |
133 $location = '/', | 140 $location = '/', |
134 $logo = 'puppet:///modules/trac/logo.png', | 141 $logo = 'puppet:///modules/trac/logo.png', |
135 $database = 'trac', | 142 $database = 'trac', |
136 $permissions = 'puppet:///modules/trac/permissions.csv', | 143 $permissions = 'puppet:///modules/trac/permissions.csv', |
137 $theme = 'puppet:///modules/trac/theme.css') { | 144 $theme = 'puppet:///modules/trac/theme.css') { |
138 | 145 |
139 $database_password = $private::trac::database_password | 146 $database_password = $private::trac::database_password |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 # Daily restart required for log rotation of all instances at once | 258 # Daily restart required for log rotation of all instances at once |
252 cron {'restart-trac-daily': | 259 cron {'restart-trac-daily': |
253 command => 'service spawn-fcgi restart >/tmp/spawn-fcgi-restart.log', | 260 command => 'service spawn-fcgi restart >/tmp/spawn-fcgi-restart.log', |
254 environment => hiera('cron::environment', []), | 261 environment => hiera('cron::environment', []), |
255 hour => '1', | 262 hour => '1', |
256 minute => '0', | 263 minute => '0', |
257 user => 'root', | 264 user => 'root', |
258 } | 265 } |
259 } | 266 } |
260 | 267 |
OLD | NEW |