diff --git a/manifests/resource/upstream/member.pp b/manifests/resource/upstream/member.pp index 8c6ca95ae..5be5dfad0 100644 --- a/manifests/resource/upstream/member.pp +++ b/manifests/resource/upstream/member.pp @@ -85,7 +85,7 @@ target => "${conf_dir}/${upstream}-upstream.conf", order => 40, content => epp('nginx/upstream/upstream_member.epp', { - _server => $_server, + server => $_server, backup => $backup, comment => $comment, fail_timeout => $fail_timeout, diff --git a/templates/upstream/upstream_member.epp b/templates/upstream/upstream_member.epp index 4bfed2db7..d4511cf40 100644 --- a/templates/upstream/upstream_member.epp +++ b/templates/upstream/upstream_member.epp @@ -1,4 +1,4 @@ -<%- | $_server, +<%- | $server, Boolean $backup = false, Optional[String[1]] $comment = undef, Optional[Nginx::Time] $fail_timeout = undef, @@ -13,7 +13,7 @@ Optional[Enum['drain','down']] $state = undef, Optional[Integer[1]] $weight = undef, | -%> - server <%= $_server -%> + server <%= $server -%> <%- if $params_prepend { %> <%= $params_prepend %><% } -%> <%- if $state { %> <%= $state %><% } -%> <%- if $weight { %> weight=<%= $weight %><% } -%> diff --git a/types/upstreammember.pp b/types/upstreammember.pp index 10dcc42e8..8534f13a2 100644 --- a/types/upstreammember.pp +++ b/types/upstreammember.pp @@ -1,5 +1,5 @@ type Nginx::UpstreamMember = Struct[{ - server => Optional[Nginx::UpstreamMemberServer], + server => Optional[Nginx::UpstreamMemberServer], port => Optional[Stdlib::Port], weight => Optional[Integer[1]], max_conns => Optional[Integer[1]],