diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-06-20 02:01:46 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-06-20 02:01:46 +0200 |
commit | 5a4ed134fea123837772ba5d1911716f198bc6f6 (patch) | |
tree | 8b376e1ba6772dd90bcccfd552e81000ad778ec6 /manifests/proxy | |
parent | fixes (diff) | |
download | concourse-5a4ed134fea123837772ba5d1911716f198bc6f6.tar.gz concourse-5a4ed134fea123837772ba5d1911716f198bc6f6.tar.xz |
fixes
Diffstat (limited to 'manifests/proxy')
-rw-r--r-- | manifests/proxy/nginx.pp | 10 |
1 files changed, 7 insertions, 3 deletions
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: |