File tree Expand file tree Collapse file tree 7 files changed +27
-13
lines changed Expand file tree Collapse file tree 7 files changed +27
-13
lines changed Original file line number Diff line number Diff line change 4
4
5
5
ENHANCEMENTS:
6
6
7
- Bump the Ansible ` community.general ` collection to ` 5.1.1 ` , ` ansible.posix ` collection to ` 1.4.0 ` and ` community.docker ` collection to ` 2.6.0 ` .
7
+ * Bump the Ansible ` community.general ` collection to ` 5.1.1 ` , ` ansible.posix ` collection to ` 1.4.0 ` and ` community.docker ` collection to ` 2.6.0 ` .
8
+ * Add support for the latest NGINX Plus R26 directives:
9
+ * ` auth_jwt_require ` now allows you to optionally set the ` error ` code you wish to return.
10
+ * ` health_check ` now lets you set a ` keepalive_time ` .
8
11
9
12
BUG FIXES:
10
13
Original file line number Diff line number Diff line change @@ -68,43 +68,43 @@ The NGINX config Ansible role supports all platforms supported by [NGINX Open So
68
68
69
69
` ` ` yaml
70
70
Alpine:
71
- - 3.11
72
- - 3.12
73
71
- 3.13
74
72
- 3.14
73
+ - 3.15
74
+ - 3.16
75
75
Amazon Linux:
76
76
- 2
77
77
CentOS:
78
78
- 7.4+
79
- - 8
80
79
Debian:
81
80
- buster (10)
82
81
- bullseye (11)
83
82
Red Hat:
84
83
- 7.4+
85
84
- 8
85
+ - 9
86
86
SUSE/SLES:
87
87
- 12
88
88
- 15
89
89
Ubuntu:
90
90
- bionic (18.04)
91
91
- focal (20.04)
92
- - hirsute (21.04)
92
+ - impish (21.10)
93
+ - jammy (22.04)
93
94
` ` `
94
95
95
96
# ## NGINX Plus
96
97
97
98
` ` ` yaml
98
99
Alpine:
99
- - 3.11
100
- - 3.12
101
100
- 3.13
102
101
- 3.14
102
+ - 3.15
103
+ - 3.16
103
104
Amazon Linux 2:
104
105
- any
105
106
CentOS:
106
107
- 7.4+
107
- - 8
108
108
Debian:
109
109
- buster (10)
110
110
- bullseye (11)
@@ -116,12 +116,14 @@ Oracle Linux:
116
116
Red Hat:
117
117
- 7.4+
118
118
- 8
119
+ - 9
119
120
SUSE/SLES:
120
121
- 12
121
122
- 15
122
123
Ubuntu:
123
124
- bionic (18.04)
124
125
- focal (20.04)
126
+ - jammy (22.04)
125
127
` ` `
126
128
127
129
# # Role Variables
Original file line number Diff line number Diff line change @@ -529,7 +529,9 @@ nginx_config_http_template:
529
529
key_request : /path/to/file
530
530
leeway : 0s
531
531
type : signed # Can be set to 'signed', 'encrypted' or 'nested'
532
- require : $valid_jwt_iss # String or a list of strings
532
+ require :
533
+ values : $valid_jwt_iss # Required -- String or a list of strings
534
+ error : 401 # Can be set to '401' or '403'
533
535
api : # Available only in NGINX Plus -- Configure HTTP API
534
536
enable : # true # Set to Boolean directly to simply enable the 'api' directive -- Available only in the 'location' context
535
537
write : true # Boolean
@@ -582,6 +584,7 @@ nginx_config_http_template:
582
584
port : 80
583
585
grpc_service : service
584
586
grpc_status : 12
587
+ keepalive_time : 0
585
588
match : # Available only in the 'http' context
586
589
- name : name # Required
587
590
conditions : []
Original file line number Diff line number Diff line change @@ -24,14 +24,16 @@ galaxy_info:
24
24
versions :
25
25
- ' 7'
26
26
- ' 8'
27
+ - ' 9'
27
28
- name : FreeBSD
28
29
versions :
29
30
- ' 12.1'
30
31
- name : Ubuntu
31
32
versions :
32
33
- bionic
33
34
- focal
34
- - hirsute
35
+ - impish
36
+ - jammy
35
37
- name : SLES
36
38
versions :
37
39
- ' 12'
Original file line number Diff line number Diff line change 213
213
name : info
214
214
leeway : 0s
215
215
type : nested
216
- require : jwt
216
+ require :
217
+ values : $jwt_claim_iss
218
+ error : 403
217
219
auth_request :
218
220
uri : false
219
221
set :
416
418
persistent : false
417
419
match : nginx
418
420
port : 80
421
+ keepalive_time : 0
419
422
proxy :
420
423
bind : false
421
424
buffer_size : 4k
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ auth_jwt_leeway {{ auth_jwt['leeway'] }};
74
74
auth_jwt_type {{ auth_jwt['type'] }};
75
75
{% endif %}
76
76
{% if auth_jwt ['require' ] is defined %}
77
- auth_jwt_require {{ auth_jwt['require'] if auth_jwt['require'] is string else auth_jwt['require'] | join(' ') }};
77
+ auth_jwt_require {{ auth_jwt['require'] ['values '] if auth_jwt['require'] ['values '] is string else auth_jwt['require'] ['values '] | join(' ') }}{{ (' ' + auth_jwt['require '] ['error '] | string) if auth_jwt['require '] ['error '] in ['401', '403 '] }};
78
78
{% endif %}
79
79
80
80
{% endmacro %}
Original file line number Diff line number Diff line change @@ -118,7 +118,8 @@ health_check{{ (' interval=' + health_check['interval'] | string) if health_chec
118
118
{{- (' port=' + health_check['port'] | string) if health_check['port'] is defined -}}
119
119
{{- ' type=grpc' if health_check['grpc_service'] is defined or health_check['grpc_status'] is defined -}}
120
120
{{- (' grpc_service=' + health_check['grpc_service'] | string) if health_check['grpc_service'] is defined -}}
121
- {{- (' grpc_status=' + health_check['grpc_status'] | string) if health_check['grpc_status'] is defined }};
121
+ {{- (' grpc_status=' + health_check['grpc_status'] | string) if health_check['grpc_status'] is defined -}}
122
+ {{- (' keepalive_time=' + health_check['keepalive_time'] | string) if health_check['keepalive_time'] is defined }};
122
123
{% endfor %}
123
124
{% endif %}
124
125
{% if health_check ['match' ] is defined and health_check ['match' ] is not string and health_check ['match' ] is not mapping %} {# 'match' directive is only available in the 'http' context #}
You can’t perform that action at this time.
0 commit comments