Skip to content

Commit a19a81e

Browse files
authored
Remove Debian Stretch from supported platforms and temporarily install NGINX Plus R24 in Molecule tests (#130)
1 parent 7301b20 commit a19a81e

File tree

14 files changed

+81
-38
lines changed

14 files changed

+81
-38
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@
22

33
## 0.6.1 (Unreleased)
44

5+
KNOWN ISSUES:
6+
7+
As of the latest NGINX Plus release, R25, NGINX App Protect will no longer install or work. The only workaround at this time is to install NGINX Plus R24 before attempting to install NGINX App Protect WAF/DoS. A fix is planned in NGINX App Protect 3.6, planned for release mid-October.
8+
59
ENHANCEMENTS:
610

7-
Update the Ansible `community.general` collection to `3.7.0`, `ansible.posix` collection to `1.3.0` and `community.docker` collection to `1.9.1`.
11+
* Remove Debian Stretch from the list of supported platforms for NAP (and from Molecule).
12+
* Update the Ansible `community.general` collection to `3.7.0`, `ansible.posix` collection to `1.3.0` and `community.docker` collection to `1.9.1`.
813

914
BUG FIXES:
1015

README.md

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

99
This role installs and configures NGINX App Protect WAF or DoS for NGINX Plus on your target host.
1010

11+
**Warning:** As of the latest NGINX Plus release, R25, NGINX App Protect will no longer install or work. The only workaround at this time is to install NGINX Plus R24 before attempting to install NGINX App Protect WAF/DoS. A fix is planned in NGINX App Protect 3.6, planned for release mid-October.
12+
1113
**Note:** By default, this role will install NGINX App Protect WAF. To install NGINX App Protect DoS, you need to set the `nginx_app_protect_dos_enable` variable to `true`.
1214

1315
**Note:** This role is still in active development. There may be unidentified issues and the role variables may change as development continues.

meta/main.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ galaxy_info:
2222
- 7
2323
- name: Debian
2424
versions:
25-
- stretch
2625
- buster
2726
- name: Ubuntu
2827
versions:

molecule/advanced/prepare.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,27 @@
3636
raw: nohup nginx </dev/null >/dev/null 2>&1 & sleep 1
3737
changed_when: false
3838

39-
- name: Install NGINX Plus on Alpine
39+
- name: Install NGINX Plus R24 to avoid dependency issues
4040
hosts: nap
4141
tasks:
42-
- name: Set up NGINX Plus on Alpine for NAP 3.2/3.3 issue workaround (remove in versions > 3.3)
42+
- name: Set repo if Alpine
43+
set_fact:
44+
version: "=24-r2"
45+
when: ansible_facts['os_family'] == "Alpine"
46+
- name: Set repo if Debian
47+
set_fact:
48+
version: "=24-2~{{ ansible_facts['distribution_release'] }}"
49+
when: ansible_facts['os_family'] == "Debian"
50+
- name: Set repo if Red Hat
51+
set_fact:
52+
version: "-24-2.{{ (ansible_facts['distribution']=='Amazon') | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx"
53+
when: ansible_facts['os_family'] == "RedHat"
54+
- name: Install NGINX Plus R24 to avoid dependency issues
4355
include_role:
4456
name: nginxinc.nginx
4557
vars:
46-
nginx_enable: true
47-
nginx_start: true
4858
nginx_type: plus
49-
nginx_remove_license: false
59+
nginx_version: "{{ version }}"
5060
nginx_license:
5161
certificate: ../../files/license/nginx-repo.crt
5262
key: ../../files/license/nginx-repo.key
53-
when: ansible_os_family == "Alpine"

molecule/advanced/requirements.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
roles:
33
- name: nginxinc.nginx
4-
version: 0.20.0
4+
version: 0.21.1
55
- name: robertdebock.rsyslog
66
version: 3.2.0

molecule/default/molecule.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,6 @@ platforms:
3131
volumes:
3232
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
3333
command: "/usr/sbin/init"
34-
- name: debian-stretch
35-
image: debian:stretch-slim
36-
dockerfile: ../Dockerfile.j2
37-
privileged: true
38-
volumes:
39-
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
40-
command: "/sbin/init"
4134
- name: debian-buster
4235
image: debian:buster-slim
4336
dockerfile: ../Dockerfile.j2

molecule/default/prepare.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,27 @@
1717
force: false
1818
mode: 0444
1919

20-
- name: Install NGINX Plus on Alpine
20+
- name: Install NGINX Plus R24 to avoid dependency issues
2121
hosts: all
2222
tasks:
23-
- name: Set up NGINX Plus on Alpine for NAP 3.2/3.3 issue workaround (remove in versions > 3.3)
23+
- name: Set repo if Alpine
24+
set_fact:
25+
version: "=24-r2"
26+
when: ansible_facts['os_family'] == "Alpine"
27+
- name: Set repo if Debian
28+
set_fact:
29+
version: "=24-2~{{ ansible_facts['distribution_release'] }}"
30+
when: ansible_facts['os_family'] == "Debian"
31+
- name: Set repo if Red Hat
32+
set_fact:
33+
version: "-24-2.{{ (ansible_facts['distribution']=='Amazon') | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx"
34+
when: ansible_facts['os_family'] == "RedHat"
35+
- name: Install NGINX Plus R24 to avoid dependency issues
2436
include_role:
2537
name: nginxinc.nginx
2638
vars:
27-
nginx_enable: true
28-
nginx_start: true
2939
nginx_type: plus
40+
nginx_version: "{{ version }}"
3041
nginx_license:
3142
certificate: ../../files/license/nginx-repo.crt
3243
key: ../../files/license/nginx-repo.key
33-
when: ansible_os_family == "Alpine"

molecule/default/requirements.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
22
roles:
33
- name: nginxinc.nginx
4-
version: 0.20.0
4+
version: 0.21.1

molecule/dos/prepare.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,27 @@
1616
dest: ../../files/license/nginx-repo.key
1717
force: false
1818
mode: 0444
19+
- name: Install NGINX Plus R24 to avoid dependency issues
20+
hosts: all
21+
tasks:
22+
- name: Set repo if Alpine
23+
set_fact:
24+
version: "=24-r2"
25+
when: ansible_facts['os_family'] == "Alpine"
26+
- name: Set repo if Debian
27+
set_fact:
28+
version: "=24-2~{{ ansible_facts['distribution_release'] }}"
29+
when: ansible_facts['os_family'] == "Debian"
30+
- name: Set repo if Red Hat
31+
set_fact:
32+
version: "-24-2.{{ (ansible_facts['distribution']=='Amazon') | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx"
33+
when: ansible_facts['os_family'] == "RedHat"
34+
- name: Install NGINX Plus R24 to avoid dependency issues
35+
include_role:
36+
name: nginxinc.nginx
37+
vars:
38+
nginx_type: plus
39+
nginx_version: "{{ version }}"
40+
nginx_license:
41+
certificate: ../../files/license/nginx-repo.crt
42+
key: ../../files/license/nginx-repo.key

molecule/dos/requirements.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
22
roles:
33
- name: nginxinc.nginx
4-
version: 0.20.0
4+
version: 0.21.1

0 commit comments

Comments
 (0)