Skip to content

Commit c3b8163

Browse files
authored
Support NGINX Plus R30 (#650)
1 parent 26f6a43 commit c3b8163

File tree

14 files changed

+118
-105
lines changed

14 files changed

+118
-105
lines changed

.github/workflows/molecule.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
name: Molecule CI/CD
33
on:
44
pull_request:
5-
branches:
6-
- main
5+
# branches:
6+
# - main
77
push:
88
branches:
99
- main

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## 0.24.2 (Unreleased)
44

5+
FEATURES:
6+
7+
- Add Alpine Linux 3.18 and Debian bookworm to the list of NGINX Plus tested and supported distributions.
8+
- Remove Alpine Linux 3.14 and Ubuntu bionic from the list of NGINX Plus tested and supported distributions.
9+
- The `geoip2` module for NGINX Plus is no longer supported on Amazon Linux.
10+
511
CI/CD:
612

713
- Reimplement some platforms in the upgrade & downgrade Molecule scenarios since all platforms now have at least two releases.
@@ -25,11 +31,11 @@ ENHANCEMENTS:
2531

2632
BUG FIXES:
2733

28-
- Fix an issue with the platform validation logic whereas distro versions ending in `*.*0` would not be correctly identified.
34+
- Fix an issue with the platform validation logic where distribution versions ending in `*.*0` would not be correctly identified.
2935

3036
CI/CD:
3137

32-
- Comment out the platform parameter out of Molecule tests. QEMU based tests are failing when trying to test the newest supported distros.
38+
- Comment out the platform parameter out of Molecule tests. QEMU based tests are failing when trying to test the newest supported distribution.
3339
- Split Ansible Lint into its own GitHub Actions job since Molecule no longer runs linters natively.
3440
- Replace `molecule[docker]` with `molecule` and `molecule-plugins[docker]`.
3541
- Explicitly set the `ansible-compat` version (commented out for the time being whilst waiting for a new release of Molecule).

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,17 @@ AlmaLinux:
132132
- 8
133133
- 9
134134
Alpine:
135-
- 3.14
136135
- 3.15
137136
- 3.16
138137
- 3.17
138+
- 3.18
139139
Amazon Linux:
140140
- 2
141141
CentOS:
142142
- 7.4+
143143
Debian:
144144
- bullseye (11)
145+
- bookworm (12)
145146
FreeBSD:
146147
- 12.1+
147148
- 13
@@ -160,7 +161,6 @@ SUSE/SLES:
160161
- 12
161162
- 15
162163
Ubuntu:
163-
- bionic (18.04)
164164
- focal (20.04)
165165
- jammy (22.04)
166166
```

molecule/downgrade-plus/converge.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
pre_tasks:
55
- name: Set repo if Alpine
66
ansible.builtin.set_fact:
7-
version: =27-r1
7+
version: =29-r1
88
when: ansible_facts['os_family'] == "Alpine"
99
- name: Set repo if Debian
1010
ansible.builtin.set_fact:
11-
version: =27-1~{{ ansible_facts['distribution_release'] }}
11+
version: =29-1~{{ ansible_facts['distribution_release'] }}
1212
when: ansible_facts['os_family'] == "Debian"
1313
- name: Set repo if Red Hat
1414
ansible.builtin.set_fact:
15-
version: -27-1.{{ (ansible_facts['distribution'] == "Amazon") | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx
15+
version: -29-1.{{ (ansible_facts['distribution'] == "Amazon") | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx
1616
when: ansible_facts['os_family'] == "RedHat"
1717
- name: Set repo if SLES
1818
ansible.builtin.set_fact:
19-
version: =27-1.sles{{ ansible_facts['distribution_major_version'] }}.ngx
19+
version: =29-1.sles{{ ansible_facts['distribution_major_version'] }}.ngx
2020
when: ansible_facts['os_family'] == "Suse"
2121
tasks:
2222
- name: Install NGINX

molecule/downgrade-plus/molecule.yml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
driver:
33
name: docker
4-
platforms: # Alpine 3.17 only has one version of NGINX Plus available (at the moment) so it's impossible to test the downgrade scenario
4+
platforms: # Alpine 3.18 and Debian bookworm only have one version of NGINX Plus available (at the moment) so it's impossible to test the downgrade scenario
55
- name: almalinux-8
66
image: almalinux:8
77
dockerfile: ../common/Dockerfile.j2
@@ -18,34 +18,34 @@ platforms: # Alpine 3.17 only has one version of NGINX Plus available (at the mo
1818
volumes:
1919
- /sys/fs/cgroup:/sys/fs/cgroup:rw
2020
command: /usr/sbin/init
21-
- name: alpine-3.14
22-
image: alpine:3.14
21+
- name: alpine-3.15
22+
image: alpine:3.15
2323
dockerfile: ../common/Dockerfile.j2
2424
privileged: true
2525
cgroupns_mode: host
2626
volumes:
2727
- /sys/fs/cgroup:/sys/fs/cgroup:rw
2828
command: /sbin/init
29-
- name: alpine-3.15
30-
image: alpine:3.15
29+
- name: alpine-3.16
30+
image: alpine:3.16
31+
# platform: x86_64
3132
dockerfile: ../common/Dockerfile.j2
3233
privileged: true
3334
cgroupns_mode: host
3435
volumes:
3536
- /sys/fs/cgroup:/sys/fs/cgroup:rw
3637
command: /sbin/init
37-
- name: alpine-3.16
38-
image: alpine:3.16
39-
# platform: x86_64
38+
- name: alpine-3.17
39+
image: alpine:3.17
40+
# platform: aarch64
4041
dockerfile: ../common/Dockerfile.j2
4142
privileged: true
4243
cgroupns_mode: host
4344
volumes:
4445
- /sys/fs/cgroup:/sys/fs/cgroup:rw
4546
command: /sbin/init
46-
# - name: alpine-3.17
47-
# image: alpine:3.17
48-
# platform: aarch64
47+
# - name: alpine-3.18
48+
# image: alpine:3.18
4949
# dockerfile: ../common/Dockerfile.j2
5050
# privileged: true
5151
# cgroupns_mode: host
@@ -78,6 +78,14 @@ platforms: # Alpine 3.17 only has one version of NGINX Plus available (at the mo
7878
volumes:
7979
- /sys/fs/cgroup:/sys/fs/cgroup:rw
8080
command: /sbin/init
81+
# - name: debian-bookworm
82+
# image: debian:bookworm-slim
83+
# dockerfile: ../common/Dockerfile.j2
84+
# privileged: true
85+
# cgroupns_mode: host
86+
# volumes:
87+
# - /sys/fs/cgroup:/sys/fs/cgroup:rw
88+
# command: /sbin/init
8189
- name: oraclelinux-7
8290
image: oraclelinux:7
8391
# platform: x86_64
@@ -155,15 +163,6 @@ platforms: # Alpine 3.17 only has one version of NGINX Plus available (at the mo
155163
volumes:
156164
- /sys/fs/cgroup:/sys/fs/cgroup:rw
157165
command: /usr/sbin/init
158-
- name: ubuntu-bionic
159-
image: ubuntu:bionic
160-
# platform: x86_64
161-
dockerfile: ../common/Dockerfile.j2
162-
privileged: true
163-
cgroupns_mode: host
164-
volumes:
165-
- /sys/fs/cgroup:/sys/fs/cgroup:rw
166-
command: /sbin/init
167166
- name: ubuntu-focal
168167
image: ubuntu:focal
169168
# platform: s390x

molecule/downgrade-plus/verify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@
3030
chdir: "{{ ((ansible_facts['system'] | lower is not search('bsd')) | ternary('/etc/nginx', '/usr/local/sbin')) }}"
3131
changed_when: false
3232
register: version
33-
failed_when: version is not search('27')
33+
failed_when: version is not search('29')

molecule/plus/molecule.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@ platforms:
1818
volumes:
1919
- /sys/fs/cgroup:/sys/fs/cgroup:rw
2020
command: /usr/sbin/init
21-
- name: alpine-3.14
22-
image: alpine:3.14
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
2921
- name: alpine-3.15
3022
image: alpine:3.15
3123
dockerfile: ../common/Dockerfile.j2
@@ -52,6 +44,14 @@ platforms:
5244
volumes:
5345
- /sys/fs/cgroup:/sys/fs/cgroup:rw
5446
command: /sbin/init
47+
- name: alpine-3.18
48+
image: alpine:3.18
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
5555
- name: amazonlinux-2
5656
image: amazonlinux:2
5757
# platform: x86_64
@@ -78,6 +78,14 @@ platforms:
7878
volumes:
7979
- /sys/fs/cgroup:/sys/fs/cgroup:rw
8080
command: /sbin/init
81+
- name: debian-bookworm
82+
image: debian:bookworm-slim
83+
dockerfile: ../common/Dockerfile.j2
84+
privileged: true
85+
cgroupns_mode: host
86+
volumes:
87+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
88+
command: /sbin/init
8189
- name: oraclelinux-7
8290
image: oraclelinux:7
8391
# platform: x86_64
@@ -155,15 +163,6 @@ platforms:
155163
volumes:
156164
- /sys/fs/cgroup:/sys/fs/cgroup:rw
157165
command: /usr/sbin/init
158-
- name: ubuntu-bionic
159-
image: ubuntu:bionic
160-
# platform: x86_64
161-
dockerfile: ../common/Dockerfile.j2
162-
privileged: true
163-
cgroupns_mode: host
164-
volumes:
165-
- /sys/fs/cgroup:/sys/fs/cgroup:rw
166-
command: /sbin/init
167166
- name: ubuntu-focal
168167
image: ubuntu:focal
169168
# platform: s390x

molecule/plus/verify.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,17 @@
2323
ansible.builtin.uri:
2424
url: http://localhost
2525
status_code: 200
26+
27+
- name: Fetch the latest version of NGINX Plus
28+
ansible.builtin.uri:
29+
url: https://version.nginx.com/plus
30+
return_content: true
31+
register: nginx_version
32+
33+
- name: Verify the latest version of NGINX Plus has been installed
34+
ansible.builtin.command: nginx -v
35+
args:
36+
chdir: "{{ ((ansible_facts['system'] | lower is not search('bsd')) | ternary('/etc/nginx', '/usr/local/sbin')) }}"
37+
changed_when: false
38+
register: version
39+
failed_when: version is not search(nginx_version['content'] | regex_search('[0-9]+'))

molecule/uninstall-plus/molecule.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@ platforms: # Ubuntu bionic results in a segmentation fault error as of Ansible c
1818
volumes:
1919
- /sys/fs/cgroup:/sys/fs/cgroup:rw
2020
command: /usr/sbin/init
21-
- name: alpine-3.14
22-
image: alpine:3.14
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
2921
- name: alpine-3.15
3022
image: alpine:3.15
3123
dockerfile: ../common/Dockerfile.j2
@@ -52,6 +44,15 @@ platforms: # Ubuntu bionic results in a segmentation fault error as of Ansible c
5244
volumes:
5345
- /sys/fs/cgroup:/sys/fs/cgroup:rw
5446
command: /sbin/init
47+
- name: alpine-3.18
48+
image: alpine:3.18
49+
# platform: aarch64
50+
dockerfile: ../common/Dockerfile.j2
51+
privileged: true
52+
cgroupns_mode: host
53+
volumes:
54+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
55+
command: /sbin/init
5556
- name: amazonlinux-2
5657
image: amazonlinux:2
5758
# platform: x86_64
@@ -78,6 +79,14 @@ platforms: # Ubuntu bionic results in a segmentation fault error as of Ansible c
7879
volumes:
7980
- /sys/fs/cgroup:/sys/fs/cgroup:rw
8081
command: /sbin/init
82+
- name: debian-bookworm
83+
image: debian:bookworm-slim
84+
dockerfile: ../common/Dockerfile.j2
85+
privileged: true
86+
cgroupns_mode: host
87+
volumes:
88+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
89+
command: /sbin/init
8190
- name: oraclelinux-7
8291
image: oraclelinux:7
8392
# platform: x86_64
@@ -155,15 +164,6 @@ platforms: # Ubuntu bionic results in a segmentation fault error as of Ansible c
155164
volumes:
156165
- /sys/fs/cgroup:/sys/fs/cgroup:rw
157166
command: /usr/sbin/init
158-
# - name: ubuntu-bionic
159-
# image: ubuntu:bionic
160-
# platform: x86_64
161-
# dockerfile: ../common/Dockerfile.j2
162-
# privileged: true
163-
# cgroupns_mode: host
164-
# volumes:
165-
# - /sys/fs/cgroup:/sys/fs/cgroup:rw
166-
# command: /sbin/init
167167
- name: ubuntu-focal
168168
image: ubuntu:focal
169169
# platform: s390x

0 commit comments

Comments
 (0)