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

Unified Diff: modules/trac/manifests/init.pp

Issue 5476360696889344: Added SSL encryption to issue tracker configuration (Closed)
Patch Set: Created March 11, 2014, 8:58 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 | « no previous file | modules/trac/templates/site.erb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/trac/manifests/init.pp
===================================================================
--- a/modules/trac/manifests/init.pp
+++ b/modules/trac/manifests/init.pp
@@ -2,16 +2,36 @@ class trac(
$domain,
$is_default = false) inherits private::trac {
package {['python-mysqldb','python-pip','subversion', 'tofrodos', 'graphviz']:
ensure => present
}
include nginx, spawn-fcgi
+ file {'/etc/nginx/adblockplus.org_sslcert.key':
Wladimir Palant 2014/03/11 12:40:48 Note that all other servers have this file in /etc
Felix Dahlke 2014/03/13 00:32:16 Sounds like an issue that wants to be filed :)
+ ensure => file,
+ owner => root,
+ mode => 0644,
+ notify => Service['nginx'],
+ before => Nginx::Hostconfig[$domain],
+ require => Package['nginx'],
+ source => 'puppet:///modules/private/adblockplus.org_sslcert.key'
+ }
+
+ file {'/etc/nginx/adblockplus.org_sslcert.pem':
+ ensure => file,
+ owner => root,
+ mode => 0400,
+ notify => Service['nginx'],
+ before => Nginx::Hostconfig[$domain],
+ require => Package['nginx'],
+ source => 'puppet:///modules/private/adblockplus.org_sslcert.pem'
+ }
+
nginx::hostconfig {$domain:
content => template('trac/site.erb'),
enabled => true
}
user {'trac':
ensure => present,
comment => 'User of the trac installation',
« no previous file with comments | « no previous file | modules/trac/templates/site.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld