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

Unified 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.
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/hgweb/files/nginx.conf ('k') | modules/hgweb/templates/nginx.conf.erb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/hgweb/manifests/init.pp
diff --git a/modules/hgweb/manifests/init.pp b/modules/hgweb/manifests/init.pp
index ec82a785b03363f3dadaa1afa015584bb4bc8e81..3c90e0a8d21520dbc67962f195c9e9e0dc857a25 100644
--- a/modules/hgweb/manifests/init.pp
+++ b/modules/hgweb/manifests/init.pp
@@ -34,6 +34,7 @@ class hgweb(
$certificate = hiera('hgweb::certificate', 'undef'),
$private_key = hiera('hgweb::private_key', 'undef'),
$hgaccess = 'puppet:///modules/hgweb/hgaccess',
+ $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.
) {
include ssh, nginx
@@ -168,7 +169,7 @@ class hgweb(
'undef' => undef,
default => $certificate,
},
- source => 'puppet:///modules/hgweb/nginx.conf',
+ content => template('hgweb/nginx.conf.erb'),
is_default => $is_default,
log => 'access_log_hg',
private_key => $private_key ? {
« 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