diff options
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: |