File tree Expand file tree Collapse file tree 31 files changed +168
-140
lines changed Expand file tree Collapse file tree 31 files changed +168
-140
lines changed Original file line number Diff line number Diff line change 4
4
5
5
FEATURES:
6
6
7
- - Add Alpine Linux 3.19 to the list of NGINX Plus tested and supported distributions.
8
- - Remove Alpine Linux 3.15 from the list of NGINX Plus tested and supported distributions.
7
+ - Add Alpine Linux 3.19 to the list of NGINX Open Source and NGINX Plus tested and supported distributions.
8
+ - Remove Alpine Linux 3.15 from the list of NGINX Open Source and NGINX Plus tested and supported distributions.
9
9
10
10
ENHANCEMENTS:
11
11
@@ -19,7 +19,8 @@ BUG FIXES:
19
19
CI/CD:
20
20
21
21
- Add Molecule tests for NGINX Amplify.
22
- - Use the local role name (` ansible-role-nginx ` ) instead of the fully qualified role name (` nginxinc.nginx ` ) in Molecule to ensure tests always work as intended in environments where the role has been already installed beforehand.
22
+ - Update the RHEL based tests to use the latest UBI release.
23
+ - Use the local role name (` ansible-role-nginx ` ) instead of the fully qualified role name (` nginxinc.nginx ` ) in Molecule to ensure tests always work as intended in environments where the role has been already installed beforehand.
23
24
24
25
## 0.24.2 (October 3rd, 2023)
25
26
Original file line number Diff line number Diff line change @@ -94,10 +94,10 @@ AlmaLinux:
94
94
- 8
95
95
- 9
96
96
Alpine:
97
- - 3.15
98
97
- 3.16
99
98
- 3.17
100
99
- 3.18
100
+ - 3.19
101
101
Amazon Linux:
102
102
- 2
103
103
CentOS:
Original file line number Diff line number Diff line change 14
14
15
15
- name : Containers are not up, quit from here
16
16
ansible.builtin.fail :
17
- when : container['failed']
17
+ when : container['failed'] | bool
18
18
19
19
- name : Gather facts
20
20
ansible.builtin.setup :
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ platforms:
28
28
- /sys/fs/cgroup:/sys/fs/cgroup:rw
29
29
command : /usr/sbin/init
30
30
- name : rhel-9
31
- image : redhat/ubi9:9.1.0
31
+ image : redhat/ubi9:9.3
32
32
# platform: aarch64
33
33
dockerfile : ../common/Dockerfile.j2
34
34
privileged : true
Original file line number Diff line number Diff line change @@ -18,14 +18,6 @@ platforms:
18
18
volumes :
19
19
- /sys/fs/cgroup:/sys/fs/cgroup:rw
20
20
command : /usr/sbin/init
21
- - name : alpine-3.15
22
- image : alpine:3.15
23
- dockerfile : ../common/Dockerfile.j2
24
- privileged : true
25
- cgroupns_mode : host
26
- volumes :
27
- - /sys/fs/cgroup:/sys/fs/cgroup:rw
28
- command : /sbin/init
29
21
- name : alpine-3.16
30
22
image : alpine:3.16
31
23
platform : x86_64
@@ -52,6 +44,14 @@ platforms:
52
44
volumes :
53
45
- /sys/fs/cgroup:/sys/fs/cgroup:rw
54
46
command : /sbin/init
47
+ - name : alpine-3.19
48
+ image : alpine:3.19
49
+ dockerfile : ../common/Dockerfile.j2
50
+ privileged : true
51
+ cgroupns_mode : host
52
+ volumes :
53
+ - /sys/fs/cgroup:/sys/fs/cgroup:rw
54
+ command : /sbin/init
55
55
- name : amazonlinux-2
56
56
image : amazonlinux:2
57
57
platform : x86_64
@@ -121,7 +121,7 @@ platforms:
121
121
- /sys/fs/cgroup:/sys/fs/cgroup:rw
122
122
command : /usr/sbin/init
123
123
- name : rhel-8
124
- image : redhat/ubi8:8.7
124
+ image : redhat/ubi8:8.9
125
125
# platform: s390x
126
126
dockerfile : ../common/Dockerfile.j2
127
127
privileged : true
@@ -130,7 +130,7 @@ platforms:
130
130
- /sys/fs/cgroup:/sys/fs/cgroup:rw
131
131
command : /usr/sbin/init
132
132
- name : rhel-9
133
- image : redhat/ubi9:9.1.0
133
+ image : redhat/ubi9:9.3
134
134
# platform: aarch64
135
135
dockerfile : ../common/Dockerfile.j2
136
136
privileged : true
Original file line number Diff line number Diff line change @@ -18,14 +18,6 @@ platforms: # The RHEL UBI 7 image fails to install some NGINX dependencies when
18
18
volumes :
19
19
- /sys/fs/cgroup:/sys/fs/cgroup:rw
20
20
command : /usr/sbin/init
21
- - name : alpine-3.15
22
- image : alpine:3.15
23
- dockerfile : ../common/Dockerfile.j2
24
- privileged : true
25
- cgroupns_mode : host
26
- volumes :
27
- - /sys/fs/cgroup:/sys/fs/cgroup:rw
28
- command : /sbin/init
29
21
- name : alpine-3.16
30
22
image : alpine:3.16
31
23
platform : x86_64
@@ -52,6 +44,14 @@ platforms: # The RHEL UBI 7 image fails to install some NGINX dependencies when
52
44
volumes :
53
45
- /sys/fs/cgroup:/sys/fs/cgroup:rw
54
46
command : /sbin/init
47
+ - name : alpine-3.19
48
+ image : alpine:3.19
49
+ dockerfile : ../common/Dockerfile.j2
50
+ privileged : true
51
+ cgroupns_mode : host
52
+ volumes :
53
+ - /sys/fs/cgroup:/sys/fs/cgroup:rw
54
+ command : /sbin/init
55
55
- name : amazonlinux-2
56
56
image : amazonlinux:2
57
57
platform : x86_64
@@ -121,7 +121,7 @@ platforms: # The RHEL UBI 7 image fails to install some NGINX dependencies when
121
121
# - /sys/fs/cgroup:/sys/fs/cgroup:rw
122
122
# command: /usr/sbin/init
123
123
- name : rhel-8
124
- image : redhat/ubi8:8.7
124
+ image : redhat/ubi8:8.9
125
125
# platform: s390x
126
126
dockerfile : ../common/Dockerfile.j2
127
127
privileged : true
@@ -130,7 +130,7 @@ platforms: # The RHEL UBI 7 image fails to install some NGINX dependencies when
130
130
- /sys/fs/cgroup:/sys/fs/cgroup:rw
131
131
command : /usr/sbin/init
132
132
- name : rhel-9
133
- image : redhat/ubi9:9.1.0
133
+ image : redhat/ubi9:9.3
134
134
# platform: aarch64
135
135
dockerfile : ../common/Dockerfile.j2
136
136
privileged : true
Original file line number Diff line number Diff line change 5
5
- name : Set repo if Alpine
6
6
ansible.builtin.set_fact :
7
7
version : =30-r1
8
+ cacheable : true
8
9
when : ansible_facts['os_family'] == "Alpine"
9
10
- name : Set repo if Debian
10
11
ansible.builtin.set_fact :
11
12
version : =30-1~{{ ansible_facts['distribution_release'] }}
13
+ cacheable : true
12
14
when : ansible_facts['os_family'] == "Debian"
13
15
- name : Set repo if Red Hat
14
16
ansible.builtin.set_fact :
15
17
version : -30-1.{{ (ansible_facts['distribution'] == "Amazon") | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx
18
+ cacheable : true
16
19
when : ansible_facts['os_family'] == "RedHat"
17
20
- name : Set repo if SLES
18
21
ansible.builtin.set_fact :
19
22
version : =30-1.sles{{ ansible_facts['distribution_major_version'] }}.ngx
23
+ cacheable : true
20
24
when : ansible_facts['os_family'] == "Suse"
21
25
tasks :
22
26
- name : Install NGINX
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ platforms: # Alpine 3.19 only has one version of NGINX Plus available (at the mo
121
121
- /sys/fs/cgroup:/sys/fs/cgroup:rw
122
122
command : /usr/sbin/init
123
123
- name : rhel-8
124
- image : redhat/ubi8:8.7
124
+ image : redhat/ubi8:8.9
125
125
# platform: s390x
126
126
dockerfile : ../common/Dockerfile.j2
127
127
privileged : true
@@ -130,7 +130,7 @@ platforms: # Alpine 3.19 only has one version of NGINX Plus available (at the mo
130
130
- /sys/fs/cgroup:/sys/fs/cgroup:rw
131
131
command : /usr/sbin/init
132
132
- name : rhel-9
133
- image : redhat/ubi9:9.1.0
133
+ image : redhat/ubi9:9.3
134
134
# platform: aarch64
135
135
dockerfile : ../common/Dockerfile.j2
136
136
privileged : true
@@ -187,3 +187,8 @@ provisioner:
187
187
prepare : prepare.yml
188
188
converge : converge.yml
189
189
verify : verify.yml
190
+ config_options :
191
+ defaults :
192
+ fact_caching : jsonfile
193
+ fact_caching_connection : /tmp/facts_cache
194
+ fact_caching_timeout : 7200
Original file line number Diff line number Diff line change 3
3
hosts : localhost
4
4
gather_facts : false
5
5
tasks :
6
- - name : Create ephemeral license certificate file from b64 decoded env var # noqa template-instead-of-copy
6
+ - name : Create ephemeral license certificate file from b64 decoded env var
7
7
ansible.builtin.copy :
8
8
content : " {{ lookup('env', 'NGINX_CRT') | b64decode }}"
9
9
dest : ../../files/license/nginx-repo.crt
10
10
force : false
11
11
mode : " 0444"
12
12
13
- - name : Create ephemeral license key file from b64 decoded env var # noqa template-instead-of-copy
13
+ - name : Create ephemeral license key file from b64 decoded env var
14
14
ansible.builtin.copy :
15
15
content : " {{ lookup('env', 'NGINX_KEY') | b64decode }}"
16
16
dest : ../../files/license/nginx-repo.key
22
22
tasks :
23
23
- name : Install NGINX
24
24
ansible.builtin.include_role :
25
- name : nginxinc. nginx
25
+ name : ansible-role- nginx
26
26
vars :
27
27
nginx_type : plus
28
28
nginx_license :
Original file line number Diff line number Diff line change 29
29
args :
30
30
chdir : " {{ ((ansible_facts['system'] | lower is not search('bsd')) | ternary('/etc/nginx', '/usr/local/sbin')) }}"
31
31
changed_when : false
32
- register : version
33
- failed_when : version is not search('30' )
32
+ register : current_version
33
+ failed_when : current_version is not search(version | regex_search('[0-9]+') )
Original file line number Diff line number Diff line change 4
4
pre_tasks :
5
5
- name : Set repo if Alpine
6
6
ansible.builtin.set_fact :
7
- version : =1.25.1-r1
7
+ version : =1.25.3-r1
8
+ cacheable : true
8
9
when : ansible_facts['os_family'] == "Alpine"
9
10
- name : Set repo if Debian
10
11
ansible.builtin.set_fact :
11
- version : =1.25.1-1~{{ ansible_facts['distribution_release'] }}
12
+ version : =1.25.3-1~{{ ansible_facts['distribution_release'] }}
13
+ cacheable : true
12
14
when : ansible_facts['os_family'] == "Debian"
13
15
- name : Set repo if Red Hat
14
16
ansible.builtin.set_fact :
15
- version : -1.25.1-1.{{ (ansible_facts['distribution'] == "Amazon") | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx
17
+ version : -1.25.3-1.{{ (ansible_facts['distribution'] == "Amazon") | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx
18
+ cacheable : true
16
19
when : ansible_facts['os_family'] == "RedHat"
17
20
- name : Set repo if SLES
18
21
ansible.builtin.set_fact :
19
- version : =1.25.1-1.sles{{ ansible_facts['distribution_major_version'] }}.ngx
22
+ version : =1.25.3-1.sles{{ ansible_facts['distribution_major_version'] }}.ngx
23
+ cacheable : true
20
24
when : ansible_facts['os_family'] == "Suse"
21
25
tasks :
22
26
- name : Install NGINX
Original file line number Diff line number Diff line change @@ -18,14 +18,6 @@ platforms:
18
18
volumes :
19
19
- /sys/fs/cgroup:/sys/fs/cgroup:rw
20
20
command : /usr/sbin/init
21
- - name : alpine-3.15
22
- image : alpine:3.15
23
- dockerfile : ../common/Dockerfile.j2
24
- privileged : true
25
- cgroupns_mode : host
26
- volumes :
27
- - /sys/fs/cgroup:/sys/fs/cgroup:rw
28
- command : /sbin/init
29
21
- name : alpine-3.16
30
22
image : alpine:3.16
31
23
platform : x86_64
@@ -52,6 +44,14 @@ platforms:
52
44
volumes :
53
45
- /sys/fs/cgroup:/sys/fs/cgroup:rw
54
46
command : /sbin/init
47
+ - name : alpine-3.19
48
+ image : alpine:3.19
49
+ dockerfile : ../common/Dockerfile.j2
50
+ privileged : true
51
+ cgroupns_mode : host
52
+ volumes :
53
+ - /sys/fs/cgroup:/sys/fs/cgroup:rw
54
+ command : /sbin/init
55
55
- name : amazonlinux-2
56
56
image : amazonlinux:2
57
57
platform : x86_64
@@ -121,7 +121,7 @@ platforms:
121
121
- /sys/fs/cgroup:/sys/fs/cgroup:rw
122
122
command : /usr/sbin/init
123
123
- name : rhel-8
124
- image : redhat/ubi8:8.7
124
+ image : redhat/ubi8:8.9
125
125
# platform: s390x
126
126
dockerfile : ../common/Dockerfile.j2
127
127
privileged : true
@@ -130,7 +130,7 @@ platforms:
130
130
- /sys/fs/cgroup:/sys/fs/cgroup:rw
131
131
command : /usr/sbin/init
132
132
- name : rhel-9
133
- image : redhat/ubi9:9.1.0
133
+ image : redhat/ubi9:9.3
134
134
# platform: aarch64
135
135
dockerfile : ../common/Dockerfile.j2
136
136
privileged : true
@@ -196,3 +196,8 @@ provisioner:
196
196
prepare : prepare.yml
197
197
converge : converge.yml
198
198
verify : verify.yml
199
+ config_options :
200
+ defaults :
201
+ fact_caching : jsonfile
202
+ fact_caching_connection : /tmp/facts_cache
203
+ fact_caching_timeout : 7200
Original file line number Diff line number Diff line change 4
4
tasks :
5
5
- name : Install NGINX
6
6
ansible.builtin.include_role :
7
- name : nginxinc. nginx
7
+ name : ansible-role- nginx
Original file line number Diff line number Diff line change 29
29
args :
30
30
chdir : " {{ ((ansible_facts['system'] | lower is not search('bsd')) | ternary('/etc/nginx', '/usr/local/sbin')) }}"
31
31
changed_when : false
32
- register : version
33
- failed_when : version is not search('1.25.1' )
32
+ register : current_version
33
+ failed_when : current_version is not search(version | regex_search('([0-9]+\\.){2}[0-9]+') )
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ platforms:
121
121
- /sys/fs/cgroup:/sys/fs/cgroup:rw
122
122
command : /usr/sbin/init
123
123
- name : rhel-8
124
- image : redhat/ubi8:8.7
124
+ image : redhat/ubi8:8.9
125
125
# platform: s390x
126
126
dockerfile : ../common/Dockerfile.j2
127
127
privileged : true
@@ -130,7 +130,7 @@ platforms:
130
130
- /sys/fs/cgroup:/sys/fs/cgroup:rw
131
131
command : /usr/sbin/init
132
132
- name : rhel-9
133
- image : redhat/ubi9:9.1.0
133
+ image : redhat/ubi9:9.3
134
134
# platform: aarch64
135
135
dockerfile : ../common/Dockerfile.j2
136
136
privileged : true
Original file line number Diff line number Diff line change 3
3
hosts : localhost
4
4
gather_facts : false
5
5
tasks :
6
- - name : Create ephemeral license certificate file from b64 decoded env var # noqa template-instead-of-copy
6
+ - name : Create ephemeral license certificate file from b64 decoded env var
7
7
ansible.builtin.copy :
8
8
content : " {{ lookup('env', 'NGINX_CRT') | b64decode }}"
9
9
dest : ../../files/license/nginx-repo.crt
10
10
force : false
11
11
mode : " 0444"
12
12
13
- - name : Create ephemeral license key file from b64 decoded env var # noqa template-instead-of-copy
13
+ - name : Create ephemeral license key file from b64 decoded env var
14
14
ansible.builtin.copy :
15
15
content : " {{ lookup('env', 'NGINX_KEY') | b64decode }}"
16
16
dest : ../../files/license/nginx-repo.key
You can’t perform that action at this time.
0 commit comments