Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: modules/discourse/manifests/init.pp

Issue 5734493784637440: Issue 245 - Unify SSL configuration for all servers (Closed)
Patch Set: Converted Nagios site configuration and centralized error page configuration Created April 10, 2014, 6:40 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « modules/discourse/files/site.conf ('k') | modules/downloadserver/files/logrotate » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 class discourse( 1 class discourse(
2 $domain, 2 $domain,
3 $is_default = false 3 $is_default = false
4 ) inherits private::discourse { 4 ) inherits private::discourse {
5 5
6 include postgresql::server 6 include postgresql::server
7 7
8 postgresql::database {'discourse':} 8 postgresql::database {'discourse':}
9 9
10 postgresql::role {'discourse': 10 postgresql::role {'discourse':
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 271
272 discourse::customservice {'sidekiq': 272 discourse::customservice {'sidekiq':
273 command => 'bundle exec sidekiq' 273 command => 'bundle exec sidekiq'
274 } 274 }
275 275
276 class {'nginx': 276 class {'nginx':
277 worker_processes => 1, 277 worker_processes => 1,
278 worker_connections => 500 278 worker_connections => 500
279 } 279 }
280 280
281 file {'/etc/nginx/sites-available/adblockplus.org_sslcert.key':
282 ensure => file,
283 notify => Service['nginx'],
284 before => Nginx::Hostconfig['intraforum.adblockplus.org'],
285 require => Package['nginx'],
286 source => 'puppet:///modules/private/adblockplus.org_sslcert.key'
287 }
288
289 file {'/etc/nginx/sites-available/adblockplus.org_sslcert.pem':
290 ensure => file,
291 mode => 0400,
292 notify => Service['nginx'],
293 before => Nginx::Hostconfig[$domain],
294 require => Package['nginx'],
295 source => 'puppet:///modules/private/adblockplus.org_sslcert.pem'
296 }
297
298 nginx::hostconfig{$domain: 281 nginx::hostconfig{$domain:
299 content => template('discourse/site.erb'), 282 source => 'puppet:///modules/discourse/site.conf',
300 enabled => true 283 global_config => '
301 } 284 upstream discourse {
302 285 server localhost:3000;
303 file {"/etc/logrotate.d/nginx_$domain": 286 }',
304 ensure => file, 287 is_default => $is_default,
305 require => Nginx::Hostconfig[$domain], 288 certificate => 'adblockplus.org_sslcert.pem',
306 source => 'puppet:///modules/discourse/logrotate' 289 private_key => 'adblockplus.org_sslcert.key',
290 log => 'access_log_intraforum'
307 } 291 }
308 } 292 }
OLDNEW
« no previous file with comments | « modules/discourse/files/site.conf ('k') | modules/downloadserver/files/logrotate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld