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

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

Issue 29324553: Issue 2909 - Allow for adjusting the location of $hgweb::templates (Closed)
Patch Set: Created Aug. 24, 2015, 5:36 p.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/hgweb/files/nginx.conf ('k') | modules/hgweb/templates/nginx.conf.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: hgweb 1 # == Class: hgweb
2 # 2 #
3 # A hgweb server setup. 3 # A hgweb server setup.
4 # 4 #
5 # === Parameters: 5 # === Parameters:
6 # 6 #
7 # [*domain*] 7 # [*domain*]
8 # The auhority part of the URL the instance is associated with. 8 # The auhority part of the URL the instance is associated with.
9 # 9 #
10 # [*is_default*] 10 # [*is_default*]
(...skipping 16 matching lines...) Expand all
27 # class {'hgweb': 27 # class {'hgweb':
28 # domain => 'localhost', 28 # domain => 'localhost',
29 # } 29 # }
30 # 30 #
31 class hgweb( 31 class hgweb(
32 $domain, 32 $domain,
33 $is_default = false, 33 $is_default = false,
34 $certificate = hiera('hgweb::certificate', 'undef'), 34 $certificate = hiera('hgweb::certificate', 'undef'),
35 $private_key = hiera('hgweb::private_key', 'undef'), 35 $private_key = hiera('hgweb::private_key', 'undef'),
36 $hgaccess = 'puppet:///modules/hgweb/hgaccess', 36 $hgaccess = 'puppet:///modules/hgweb/hgaccess',
37 $templates = hiera('hgweb::templates', '/usr/share/mercurial/templates'),
Wladimir Palant 2015/08/24 18:37:02 I might have said this before but I'm no fan of ad
mathias 2015/08/24 19:03:08 Me neither.
37 ) { 38 ) {
38 39
39 include ssh, nginx 40 include ssh, nginx
40 41
41 $required_packages = ['mercurial-common', 'python-flup', 'spawn-fcgi'] 42 $required_packages = ['mercurial-common', 'python-flup', 'spawn-fcgi']
42 ensure_packages($required_packages) 43 ensure_packages($required_packages)
43 44
44 class {'sitescripts': 45 class {'sitescripts':
45 sitescriptsini_content => template('hgweb/sitescripts.ini.erb'), 46 sitescriptsini_content => template('hgweb/sitescripts.ini.erb'),
46 } 47 }
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 pattern => 'hgweb.fcgi', 162 pattern => 'hgweb.fcgi',
162 require => File['/etc/init.d/hgweb'], 163 require => File['/etc/init.d/hgweb'],
163 subscribe => File['/etc/hgweb.ini'], 164 subscribe => File['/etc/hgweb.ini'],
164 } 165 }
165 166
166 nginx::hostconfig {$domain: 167 nginx::hostconfig {$domain:
167 certificate => $certificate ? { 168 certificate => $certificate ? {
168 'undef' => undef, 169 'undef' => undef,
169 default => $certificate, 170 default => $certificate,
170 }, 171 },
171 source => 'puppet:///modules/hgweb/nginx.conf', 172 content => template('hgweb/nginx.conf.erb'),
172 is_default => $is_default, 173 is_default => $is_default,
173 log => 'access_log_hg', 174 log => 'access_log_hg',
174 private_key => $private_key ? { 175 private_key => $private_key ? {
175 'undef' => undef, 176 'undef' => undef,
176 default => $private_key, 177 default => $private_key,
177 }, 178 },
178 } 179 }
179 } 180 }
OLDNEW
« no previous file with comments | « modules/hgweb/files/nginx.conf ('k') | modules/hgweb/templates/nginx.conf.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld