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

Unified Diff: modules/adblockplus/manifests/web/fileserver/repository.pp

Issue 29805569: #12126 - Redirect aliases to a virtual host in filerserver role (Closed)
Patch Set: Created June 12, 2018, 7: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 | « no previous file | modules/web/templates/global.conf.erb » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/adblockplus/manifests/web/fileserver/repository.pp
===================================================================
--- a/modules/adblockplus/manifests/web/fileserver/repository.pp
+++ b/modules/adblockplus/manifests/web/fileserver/repository.pp
@@ -22,10 +22,13 @@
# Overwrite the default options of the authentication file used for basic
# http authentication for nginx.
#
+# [*aliases*]
+# Array of alternative names that will be redirected to the main virtual host
define adblockplus::web::fileserver::repository (
$ensure = 'present',
$users = {},
$auth_file = undef,
+ $aliases = [],
){
$repositories_directory = "$adblockplus::directory/fileserver"
@@ -38,6 +41,7 @@
$auth_filename = "${::adblockplus::directory}/htpasswd/${name}"
nginx::hostconfig {"$repository_host":
+ global_config => template("web/global.conf.erb"),
content => template("adblockplus/web/fileserver.conf.erb"),
is_default => false,
certificate => $adblockplus::web::fileserver::certificate,
« no previous file with comments | « no previous file | modules/web/templates/global.conf.erb » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld