Skip to content

Commit 12838c7

Browse files
authored
Update Molecule to support NGINX Plus R31 (#681)
1 parent bf2474a commit 12838c7

File tree

11 files changed

+74
-69
lines changed

11 files changed

+74
-69
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## 0.24.3 (Unreleased)
44

5+
FEATURES:
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.
9+
510
ENHANCEMENTS:
611

712
- Allow strings in addition to a list when configuring `logrotate`.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ AlmaLinux:
132132
- 8
133133
- 9
134134
Alpine:
135-
- 3.15
136135
- 3.16
137136
- 3.17
138137
- 3.18
138+
- 3.19
139139
Amazon Linux:
140140
- 2
141141
CentOS:
@@ -146,6 +146,7 @@ Debian:
146146
FreeBSD:
147147
- 12.1+
148148
- 13
149+
- 14
149150
Oracle Linux:
150151
- 7.4+
151152
- 8.1+

meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ galaxy_info:
1919
- name: EL
2020
versions: ['7', '8', '9']
2121
- name: FreeBSD
22-
versions: ['12.1', '12.2', '12.3', '12.4', '13.0', '13.1', '13.2']
22+
versions: ['12.1', '12.2', '12.3', '12.4', '13.0', '13.1', '13.2', '14']
2323
- name: OracleLinux
2424
versions: ['7', '8', '9']
2525
- name: Ubuntu

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: =29-r1
7+
version: =30-r1
88
when: ansible_facts['os_family'] == "Alpine"
99
- name: Set repo if Debian
1010
ansible.builtin.set_fact:
11-
version: =29-1~{{ ansible_facts['distribution_release'] }}
11+
version: =30-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: -29-1.{{ (ansible_facts['distribution'] == "Amazon") | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx
15+
version: -30-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: =29-1.sles{{ ansible_facts['distribution_major_version'] }}.ngx
19+
version: =30-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 & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
driver:
33
name: docker
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
4+
platforms: # Alpine 3.19 only has 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,14 +18,6 @@ platforms: # Alpine 3.18 and Debian bookworm only have one version of NGINX Plus
1818
volumes:
1919
- /sys/fs/cgroup:/sys/fs/cgroup:rw
2020
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
2921
- name: alpine-3.16
3022
image: alpine:3.16
3123
platform: x86_64
@@ -44,8 +36,16 @@ platforms: # Alpine 3.18 and Debian bookworm only have one version of NGINX Plus
4436
volumes:
4537
- /sys/fs/cgroup:/sys/fs/cgroup:rw
4638
command: /sbin/init
47-
# - name: alpine-3.18
48-
# image: alpine:3.18
39+
- name: alpine-3.18
40+
image: alpine:3.18
41+
dockerfile: ../common/Dockerfile.j2
42+
privileged: true
43+
cgroupns_mode: host
44+
volumes:
45+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
46+
command: /sbin/init
47+
# - name: alpine-3.19
48+
# image: alpine:3.19
4949
# dockerfile: ../common/Dockerfile.j2
5050
# privileged: true
5151
# cgroupns_mode: host
@@ -78,14 +78,14 @@ platforms: # Alpine 3.18 and Debian bookworm only have one version of NGINX Plus
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
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
8989
- name: oraclelinux-7
9090
image: oraclelinux:7
9191
platform: x86_64

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('29')
33+
failed_when: version is not search('30')

molecule/plus/molecule.yml

Lines changed: 8 additions & 8 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.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
2921
- name: alpine-3.16
3022
image: alpine:3.16
3123
platform: x86_64
@@ -52,6 +44,14 @@ platforms:
5244
volumes:
5345
- /sys/fs/cgroup:/sys/fs/cgroup:rw
5446
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
5555
- name: amazonlinux-2
5656
image: amazonlinux:2
5757
platform: x86_64

molecule/uninstall-plus/molecule.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
driver:
33
name: docker
4-
platforms: # Ubuntu bionic results in a segmentation fault error as of Ansible core 2.13
4+
platforms:
55
- name: almalinux-8
66
image: almalinux:8
77
dockerfile: ../common/Dockerfile.j2
@@ -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.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
2921
- name: alpine-3.16
3022
image: alpine:3.16
3123
platform: x86_64
@@ -46,7 +38,14 @@ platforms: # Ubuntu bionic results in a segmentation fault error as of Ansible c
4638
command: /sbin/init
4739
- name: alpine-3.18
4840
image: alpine:3.18
49-
# platform: aarch64
41+
dockerfile: ../common/Dockerfile.j2
42+
privileged: true
43+
cgroupns_mode: host
44+
volumes:
45+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
46+
command: /sbin/init
47+
- name: alpine-3.19
48+
image: alpine:3.19
5049
dockerfile: ../common/Dockerfile.j2
5150
privileged: true
5251
cgroupns_mode: host

molecule/upgrade-plus/molecule.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
driver:
33
name: docker
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
4+
platforms: # Alpine 3.19 only has 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,14 +18,6 @@ platforms: # Alpine 3.18 and Debian bookworm only have one version of NGINX Plus
1818
volumes:
1919
- /sys/fs/cgroup:/sys/fs/cgroup:rw
2020
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
2921
- name: alpine-3.16
3022
image: alpine:3.16
3123
platform: x86_64
@@ -44,8 +36,16 @@ platforms: # Alpine 3.18 and Debian bookworm only have one version of NGINX Plus
4436
volumes:
4537
- /sys/fs/cgroup:/sys/fs/cgroup:rw
4638
command: /sbin/init
47-
# - name: alpine-3.18
48-
# image: alpine:3.18
39+
- name: alpine-3.18
40+
image: alpine:3.18
41+
dockerfile: ../common/Dockerfile.j2
42+
privileged: true
43+
cgroupns_mode: host
44+
volumes:
45+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
46+
command: /sbin/init
47+
# - name: alpine-3.19
48+
# image: alpine:3.19
4949
# dockerfile: ../common/Dockerfile.j2
5050
# privileged: true
5151
# cgroupns_mode: host
@@ -78,14 +78,14 @@ platforms: # Alpine 3.18 and Debian bookworm only have one version of NGINX Plus
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
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
8989
- name: oraclelinux-7
9090
image: oraclelinux:7
9191
platform: x86_64

molecule/upgrade-plus/prepare.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@
2222
pre_tasks:
2323
- name: Set repo if Alpine
2424
ansible.builtin.set_fact:
25-
version: =29-r1
25+
version: =30-r1
2626
when: ansible_facts['os_family'] == "Alpine"
2727
- name: Set repo if Debian
2828
ansible.builtin.set_fact:
29-
version: =29-1~{{ ansible_facts['distribution_release'] }}
29+
version: =30-1~{{ ansible_facts['distribution_release'] }}
3030
when: ansible_facts['os_family'] == "Debian"
3131
- name: Set repo if Red Hat
3232
ansible.builtin.set_fact:
33-
version: -29-1.{{ (ansible_facts['distribution'] == "Amazon") | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx
33+
version: -30-1.{{ (ansible_facts['distribution'] == "Amazon") | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx
3434
when: ansible_facts['os_family'] == "RedHat"
3535
- name: Set repo if SLES
3636
ansible.builtin.set_fact:
37-
version: =29-1.sles{{ ansible_facts['distribution_major_version'] }}.ngx
37+
version: =30-1.sles{{ ansible_facts['distribution_major_version'] }}.ngx
3838
when: ansible_facts['os_family'] == "Suse"
3939
tasks:
4040
- name: Install NGINX

vars/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ nginx_plus_supported_distributions:
7171
architectures: [x86_64, aarch64]
7272
alpine:
7373
name: Alpine Linux
74-
versions: [3.15, 3.16, 3.17, 3.18]
74+
versions: [3.16, 3.17, 3.18, 3.19]
7575
architectures: [x86_64, aarch64]
7676
amazon:
7777
name: Amazon Linux
@@ -87,7 +87,7 @@ nginx_plus_supported_distributions:
8787
architectures: [x86_64, aarch64]
8888
freebsd:
8989
name: FreeBSD
90-
versions: [12, 13]
90+
versions: [12, 13, 14]
9191
architectures: [x86_64]
9292
oraclelinux:
9393
name: Oracle Linux

0 commit comments

Comments
 (0)