Skip to content

Commit c34c89b

Browse files
authored
Update list of supported platforms (#234)
1 parent daab4d0 commit c34c89b

File tree

10 files changed

+87
-44
lines changed

10 files changed

+87
-44
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44

55
FEATURES:
66

7-
Refactor how this role checks if your distribution is supported NGINX App Protect. The role will no longer fail if the target distribution is not supported, instead, you will get a warning. This should help with the occasional lag between new releases of distributions and/or NGINX App Protect and this role being updated to support those releases.
7+
* Refactor how this role checks if your distribution is supported NGINX App Protect. The role will no longer fail if the target distribution is not supported, instead, you will get a warning. This should help with the occasional lag between new releases of distributions and/or NGINX App Protect and this role being updated to support those releases.
8+
* Add support for Debian bullseye for NGINX App Protect WAF.
9+
* Add support for Oracle Linux 7.x & 8.x for NGINX App Protect WAF.
10+
* Add support for RHEL 8.7.
11+
* Remove support for Debian buster for NGINX App Protect WAF/DoS.
812

913
ENHANCEMENTS:
1014

meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ galaxy_info:
2222
- "8"
2323
- name: Debian
2424
versions:
25-
- buster
2625
- bullseye
2726
- name: Ubuntu
2827
versions:
@@ -41,4 +40,5 @@ galaxy_info:
4140

4241
collections:
4342
- ansible.posix
43+
- community.crypto
4444
- community.general

molecule/default/molecule.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,33 +23,42 @@ platforms:
2323
volumes:
2424
- /sys/fs/cgroup:/sys/fs/cgroup:rw
2525
command: /usr/sbin/init
26-
- name: rhel-7
27-
image: registry.access.redhat.com/ubi7/ubi:7.9
26+
- name: debian-bullseye
27+
image: debian:bullseye-slim
28+
platform: amd64
29+
dockerfile: ../common/Dockerfile.j2
30+
privileged: true
31+
cgroupns_mode: host
32+
volumes:
33+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
34+
command: /sbin/init
35+
- name: oraclelinux-8
36+
image: oraclelinux:8
2837
platform: amd64
2938
dockerfile: ../common/Dockerfile.j2
3039
privileged: true
3140
cgroupns_mode: host
3241
volumes:
3342
- /sys/fs/cgroup:/sys/fs/cgroup:rw
3443
command: /usr/sbin/init
35-
- name: rhel-8
36-
image: registry.access.redhat.com/ubi8/ubi:8.5
44+
- name: rhel-7
45+
image: registry.access.redhat.com/ubi7:7.9
3746
platform: amd64
3847
dockerfile: ../common/Dockerfile.j2
3948
privileged: true
4049
cgroupns_mode: host
4150
volumes:
4251
- /sys/fs/cgroup:/sys/fs/cgroup:rw
4352
command: /usr/sbin/init
44-
- name: debian-buster
45-
image: debian:buster-slim
53+
- name: rhel-8
54+
image: redhat/ubi8:8.7
4655
platform: amd64
4756
dockerfile: ../common/Dockerfile.j2
4857
privileged: true
4958
cgroupns_mode: host
5059
volumes:
5160
- /sys/fs/cgroup:/sys/fs/cgroup:rw
52-
command: /sbin/init
61+
command: /usr/sbin/init
5362
- name: ubuntu-bionic
5463
image: ubuntu:bionic
5564
platform: amd64

molecule/dos/molecule.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,42 +23,33 @@ platforms:
2323
volumes:
2424
- /sys/fs/cgroup:/sys/fs/cgroup:rw
2525
command: /usr/sbin/init
26-
- name: rhel-7
27-
image: registry.access.redhat.com/ubi7/ubi:7.9
26+
- name: debian-bullseye
27+
image: debian:bullseye-slim
2828
platform: amd64
2929
dockerfile: ../common/Dockerfile.j2
3030
privileged: true
3131
cgroupns_mode: host
3232
volumes:
3333
- /sys/fs/cgroup:/sys/fs/cgroup:rw
34-
command: /usr/sbin/init
35-
- name: rhel-8
36-
image: registry.access.redhat.com/ubi8/ubi:8.5
34+
command: /sbin/init
35+
- name: rhel-7
36+
image: registry.access.redhat.com/ubi7:7.9
3737
platform: amd64
3838
dockerfile: ../common/Dockerfile.j2
3939
privileged: true
4040
cgroupns_mode: host
4141
volumes:
4242
- /sys/fs/cgroup:/sys/fs/cgroup:rw
4343
command: /usr/sbin/init
44-
- name: debian-buster
45-
image: debian:buster-slim
46-
platform: amd64
47-
dockerfile: ../common/Dockerfile.j2
48-
privileged: true
49-
cgroupns_mode: host
50-
volumes:
51-
- /sys/fs/cgroup:/sys/fs/cgroup:rw
52-
command: /sbin/init
53-
- name: debian-bullseye
54-
image: debian:bullseye-slim
44+
- name: rhel-8
45+
image: redhat/ubi8:8.7
5546
platform: amd64
5647
dockerfile: ../common/Dockerfile.j2
5748
privileged: true
5849
cgroupns_mode: host
5950
volumes:
6051
- /sys/fs/cgroup:/sys/fs/cgroup:rw
61-
command: /sbin/init
52+
command: /usr/sbin/init
6253
- name: ubuntu-bionic
6354
image: ubuntu:bionic
6455
platform: amd64

molecule/specific-version/converge.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
specify_app_protect_signatures_version: true
66
specify_app_protect_threat_campaigns_version: true
77
app_protect_signature_version_matrix:
8-
debian: =2019.07.16-1
9-
redhat: -2019.07.16
8+
debian: =2022.12.29-1
9+
redhat: -2022.12.29
1010
app_protect_threat_campaigns_version_matrix:
11-
debian: =2020.08.20-1
12-
redhat: -2020.08.20
11+
debian: =2023.01.11-1
12+
redhat: -2023.01.11
1313
tasks:
1414
- name: Set NGINX App Protect WAF signature version fact
1515
ansible.builtin.set_fact:

molecule/specific-version/molecule.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ lint: |
55
set -e
66
ansible-lint --force-color
77
platforms:
8+
- name: amazonlinux-2
9+
image: amazonlinux:2
10+
platform: amd64
11+
dockerfile: ../common/Dockerfile.j2
12+
privileged: true
13+
cgroupns_mode: host
14+
volumes:
15+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
16+
command: /usr/sbin/init
817
- name: centos-7
918
image: centos:7
1019
platform: amd64
@@ -14,24 +23,33 @@ platforms:
1423
volumes:
1524
- /sys/fs/cgroup:/sys/fs/cgroup:rw
1625
command: /usr/sbin/init
17-
- name: rhel-7
18-
image: registry.access.redhat.com/ubi7/ubi:7.9
26+
- name: debian-bullseye
27+
image: debian:bullseye-slim
28+
platform: amd64
29+
dockerfile: ../common/Dockerfile.j2
30+
privileged: true
31+
cgroupns_mode: host
32+
volumes:
33+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
34+
command: /sbin/init
35+
- name: oraclelinux-8
36+
image: oraclelinux:8
1937
platform: amd64
2038
dockerfile: ../common/Dockerfile.j2
2139
privileged: true
2240
cgroupns_mode: host
2341
volumes:
2442
- /sys/fs/cgroup:/sys/fs/cgroup:rw
2543
command: /usr/sbin/init
26-
- name: debian-buster
27-
image: debian:buster-slim
44+
- name: rhel-7
45+
image: registry.access.redhat.com/ubi7:7.9
2846
platform: amd64
2947
dockerfile: ../common/Dockerfile.j2
3048
privileged: true
3149
cgroupns_mode: host
3250
volumes:
3351
- /sys/fs/cgroup:/sys/fs/cgroup:rw
34-
command: /sbin/init
52+
command: /usr/sbin/init
3553
- name: ubuntu-bionic
3654
image: ubuntu:bionic
3755
platform: amd64

molecule/specific-version/verify.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
specify_app_protect_signatures_version: true
66
specify_app_protect_threat_campaigns_version: true
77
app_protect_signature_version_matrix:
8-
debian: =2019.07.16-1
9-
redhat: -2019.07.16
8+
debian: =2022.12.29-1
9+
redhat: -2022.12.29
1010
app_protect_threat_campaigns_version_matrix:
11-
debian: =2020.08.20-1
12-
redhat: -2020.08.20
11+
debian: =2023.01.11-1
12+
redhat: -2023.01.11
1313
tasks:
1414
- name: Check if NGINX Plus is installed
1515
ansible.builtin.package:

molecule/uninstall/molecule.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ driver:
44
lint: |
55
set -e
66
ansible-lint --force-color
7-
platforms: # Ubuntu bionic and Debian buster result in a segmentation fault error as of Ansible core 2.13
7+
platforms: # Ubuntu bionic results in a segmentation fault error as of Ansible core 2.13
88
- name: centos-7
99
image: centos:7
1010
platform: amd64
@@ -14,6 +14,15 @@ platforms: # Ubuntu bionic and Debian buster result in a segmentation fault erro
1414
volumes:
1515
- /sys/fs/cgroup:/sys/fs/cgroup:rw
1616
command: /usr/sbin/init
17+
- name: debian-bullseye
18+
image: debian:bullseye-slim
19+
platform: amd64
20+
dockerfile: ../common/Dockerfile.j2
21+
privileged: true
22+
cgroupns_mode: host
23+
volumes:
24+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
25+
command: /sbin/init
1726
- name: rhel-7
1827
image: registry.access.redhat.com/ubi7/ubi:7.9
1928
platform: amd64

tasks/common/prerequisites/install-dependencies.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,12 @@
8484
when:
8585
- ansible_distribution_major_version == "8"
8686
- nginx_app_protect_use_rhel_subscription_repos | bool
87+
88+
- name: (Oracle Linux) Set up Oracle Linux specific repositories
89+
community.general.ini_file:
90+
path: /etc/yum.repos.d/oracle-linux-ol8.repo
91+
section: ol8_codeready_builder
92+
option: enabled
93+
value: 1
94+
mode: 0644
95+
when: ansible_distribution == "OracleLinux"

vars/main.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ nginx_app_protect_waf_linux_families:
88
"7.4", "7.5", "7.6", "7.7", "7.8", "7.9",
99
]
1010
debian: [
11-
"10",
11+
"11",
12+
]
13+
oraclelinux: [
14+
"8.1", "8.2", "8.3", "8.4", "8.5", "8.6", "8.7",
1215
]
1316
redhat: [
14-
"7.4", "7.5", "7.6", "7.7", "7.8", "7.9", "8.1", "8.2", "8.3", "8.4", "8.5", "8.6",
17+
"7.4", "7.5", "7.6", "7.7", "7.8", "7.9", "8.1", "8.2", "8.3", "8.4", "8.5", "8.6", "8.7",
1518
]
1619
ubuntu: [
1720
"18.04", "20.04",
@@ -26,10 +29,10 @@ nginx_app_protect_dos_linux_families:
2629
"7.4", "7.5", "7.6", "7.7", "7.8", "7.9",
2730
]
2831
debian: [
29-
"10", "11",
32+
"11",
3033
]
3134
redhat: [
32-
"7.4", "7.5", "7.6", "7.7", "7.8", "7.9", "8.0", "8.1", "8.2", "8.3", "8.4", "8.5", "8.6",
35+
"7.4", "7.5", "7.6", "7.7", "7.8", "7.9", "8.0", "8.1", "8.2", "8.3", "8.4", "8.5", "8.6", "8.7",
3336
]
3437
ubuntu: [
3538
"18.04", "20.04",

0 commit comments

Comments
 (0)