From 5a4ed134fea123837772ba5d1911716f198bc6f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 20 Jun 2023 02:01:46 +0200 Subject: fixes --- manifests/proxy/nginx.pp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'manifests/proxy') diff --git a/manifests/proxy/nginx.pp b/manifests/proxy/nginx.pp index 7965d4b..ad4fa17 100644 --- a/manifests/proxy/nginx.pp +++ b/manifests/proxy/nginx.pp @@ -7,18 +7,22 @@ # Name of the nginx server, will also be used for rev-proxy routing. # @param cluster # Name of the concourse cluster. +# @param upstream_members +# Members of this cluster. If puppetdb is available then these are +# collected automatically from each instance of `concourse::web`. +# But if that is not an option then they can be specified manually. # @param ensure define concourse::proxy::nginx ( String $server_name = $name, String $cluster = $concourse::default_cluster, + Optional[Nginx::UpstreamMembers] $upstream_members = undef, Enum['absent', 'present'] $ensure = 'present', ) { include concourse - # Members are collected through the puppet database. - # TODO optionally allow manually specifying them. nginx::resource::upstream { $cluster: - ensure => $ensure, + ensure => $ensure, + members => $upstream_members, } nginx::resource::server { $server_name: -- cgit v1.2.3