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

Side by Side 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.
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 | « no previous file | modules/trac/templates/site.erb » ('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 trac( 1 class trac(
2 $domain, 2 $domain,
3 $is_default = false) inherits private::trac { 3 $is_default = false) inherits private::trac {
4 package {['python-mysqldb','python-pip','subversion', 'tofrodos', 'graphviz']: 4 package {['python-mysqldb','python-pip','subversion', 'tofrodos', 'graphviz']:
5 ensure => present 5 ensure => present
6 } 6 }
7 7
8 include nginx, spawn-fcgi 8 include nginx, spawn-fcgi
9 9
10 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 :)
11 ensure => file,
12 owner => root,
13 mode => 0644,
14 notify => Service['nginx'],
15 before => Nginx::Hostconfig[$domain],
16 require => Package['nginx'],
17 source => 'puppet:///modules/private/adblockplus.org_sslcert.key'
18 }
19
20 file {'/etc/nginx/adblockplus.org_sslcert.pem':
21 ensure => file,
22 owner => root,
23 mode => 0400,
24 notify => Service['nginx'],
25 before => Nginx::Hostconfig[$domain],
26 require => Package['nginx'],
27 source => 'puppet:///modules/private/adblockplus.org_sslcert.pem'
28 }
29
10 nginx::hostconfig {$domain: 30 nginx::hostconfig {$domain:
11 content => template('trac/site.erb'), 31 content => template('trac/site.erb'),
12 enabled => true 32 enabled => true
13 } 33 }
14 34
15 user {'trac': 35 user {'trac':
16 ensure => present, 36 ensure => present,
17 comment => 'User of the trac installation', 37 comment => 'User of the trac installation',
18 home => '/home/trac', 38 home => '/home/trac',
19 managehome => true 39 managehome => true
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 require => Exec['deploy'], 154 require => Exec['deploy'],
135 } 155 }
136 156
137 file {"/home/trac/permissions.csv": 157 file {"/home/trac/permissions.csv":
138 ensure => present, 158 ensure => present,
139 owner => trac, 159 owner => trac,
140 source => 'puppet:///modules/trac/permissions.csv' 160 source => 'puppet:///modules/trac/permissions.csv'
141 } 161 }
142 162
143 } 163 }
OLDNEW
« 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