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

Unified Diff: modules/web/manifests/server.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.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/updateserver/manifests/init.pp ('k') | modules/web/templates/global.conf.erb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/web/manifests/server.pp
===================================================================
--- a/modules/web/manifests/server.pp
+++ b/modules/web/manifests/server.pp
@@ -15,32 +15,22 @@ class web::server(
environment => ['MAILTO=admins@adblockplus.org', 'PYTHONPATH=/opt/sitescripts'],
}
include nginx
package {['python-jinja2', 'python-markdown']:}
nginx::hostconfig {$vhost:
- content => template('web/site.erb'),
- enabled => true,
- }
-
- file {'/etc/nginx/sites-available/adblockplus.org_sslcert.key':
- ensure => file,
- mode => 0400,
- require => Nginx::Hostconfig[$vhost],
- source => 'puppet:///modules/private/adblockplus.org_sslcert.key',
- }
-
- file {'/etc/nginx/sites-available/adblockplus.org_sslcert.pem':
- ensure => file,
- mode => 0400,
- require => Nginx::Hostconfig[$vhost],
- source => 'puppet:///modules/private/adblockplus.org_sslcert.pem',
+ content => template('web/site.conf.erb'),
+ global_config => template('web/global.conf.erb'),
+ is_default => $is_default,
+ certificate => 'adblockplus.org_sslcert.pem',
+ private_key => 'adblockplus.org_sslcert.key',
+ log => "access_log_$vhost"
}
class {'sitescripts':
sitescriptsini_source => 'puppet:///modules/web/sitescripts',
}
if $multiplexer_locations != undef {
include spawn-fcgi
« no previous file with comments | « modules/updateserver/manifests/init.pp ('k') | modules/web/templates/global.conf.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld