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

Unified Diff: modules/adblockplus/manifests/legacy/webserver.pp

Issue 29531703: #3197 - Use of hash for parameters in legacy website (Closed)
Patch Set: Created Aug. 30, 2017, 5:01 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 | « hiera/roles/web/adblockplus.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/adblockplus/manifests/legacy/webserver.pp
===================================================================
--- a/modules/adblockplus/manifests/legacy/webserver.pp
+++ b/modules/adblockplus/manifests/legacy/webserver.pp
@@ -5,19 +5,13 @@
#
# See http://hub.eyeo.com/issues/2007 for more information.
#
-class adblockplus::legacy::webserver {
+class adblockplus::legacy::webserver (
+ $website = {},
+) {
- class {'web::server':
- vhost => 'adblockplus.org',
- certificate => 'adblockplus.org_sslcert.pem',
- private_key => 'adblockplus.org_sslcert.key',
- is_default => true,
- aliases => ['www.adblockplus.org'],
+ ensure_resource('class', 'web::server', merge({
mathias 2017/08/30 17:41:37 This is now a new mechanism on top of Puppet's in-
custom_config => template("web/adblockplus.org.conf.erb"),
- repository => 'web.adblockplus.org',
- multiplexer_locations => ['/getSubscription'],
- geoip => true,
- }
+ }, $website))
nginx::module{'geoip':
path => 'modules/ngx_http_geoip_module.so',
« no previous file with comments | « hiera/roles/web/adblockplus.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld