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', |