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 ? { |