File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 132132 Optional[String] $listen_options = undef ,
133133 Boolean $ipv6_enable = false ,
134134 Variant[Array[String], String] $ipv6_listen_ip = ' ::' ,
135- Stdlib::Port $ipv6_listen_port = 80 ,
135+ Stdlib::Port $ipv6_listen_port = $listen_port ,
136136 String $ipv6_listen_options = ' default ipv6only=on' ,
137137 Boolean $ssl = false ,
138138 Optional[String] $ssl_cert = undef ,
Original file line number Diff line number Diff line change 284284define nginx::resource::server (
285285 Enum['absent', 'present'] $ensure = ' present' ,
286286 Variant[Array, String] $listen_ip = ' *' ,
287- Integer $listen_port = 80,
287+ Stdlib::Port $listen_port = 80,
288288 Optional[String] $listen_options = undef ,
289289 Boolean $listen_unix_socket_enable = false ,
290290 Variant[Array[Stdlib::Absolutepath], Stdlib::Absolutepath] $listen_unix_socket = ' /var/run/nginx.sock' ,
294294 Array $location_deny = [],
295295 Boolean $ipv6_enable = false ,
296296 Variant[Array, String] $ipv6_listen_ip = ' ::' ,
297- Integer $ipv6_listen_port = 80 ,
297+ Stdlib::Port $ipv6_listen_port = $listen_port ,
298298 String $ipv6_listen_options = ' default ipv6only=on' ,
299299 Hash $add_header = {},
300300 Boolean $ssl = false ,
Original file line number Diff line number Diff line change 5656 Optional[String] $listen_options = undef ,
5757 Boolean $ipv6_enable = false ,
5858 Variant[Array, String] $ipv6_listen_ip = ' ::' ,
59- Integer $ipv6_listen_port = 80 ,
59+ Integer $ipv6_listen_port = $listen_port ,
6060 String $ipv6_listen_options = ' default ipv6only=on' ,
6161 $proxy = undef ,
6262 String $proxy_read_timeout = $nginx::proxy_read_timeout,
Original file line number Diff line number Diff line change 6161 title : 'should enable IPv6' ,
6262 attr : 'ipv6_enable' ,
6363 value : true ,
64- match : ' listen [::]:80 default ipv6only=on;'
64+ match : ' listen [::]:25 default ipv6only=on;'
6565 } ,
6666 {
6767 title : 'should not enable IPv6' ,
6868 attr : 'ipv6_enable' ,
6969 value : false ,
70- notmatch : %r{ listen \[ ::\] :80 default ipv6only=on;}
70+ notmatch : %r{ listen \[ ::\] :25 default ipv6only=on;}
7171 } ,
7272 {
7373 title : 'should set the IPv6 listen IP' ,
7474 attr : 'ipv6_listen_ip' ,
7575 value : '2001:0db8:85a3:0000:0000:8a2e:0370:7334' ,
76- match : ' listen [2001:0db8:85a3:0000:0000:8a2e:0370:7334]:80 default ipv6only=on;'
76+ match : ' listen [2001:0db8:85a3:0000:0000:8a2e:0370:7334]:25 default ipv6only=on;'
7777 } ,
7878 {
7979 title : 'should set the IPv6 listen port' ,
8585 title : 'should set the IPv6 listen options' ,
8686 attr : 'ipv6_listen_options' ,
8787 value : 'spdy' ,
88- match : ' listen [::]:80 spdy;'
88+ match : ' listen [::]:25 spdy;'
8989 } ,
9090 {
9191 title : 'should set servername(s)' ,
You can’t perform that action at this time.
0 commit comments