Skip to content

Commit d2cd395

Browse files
committed
Support NGINX OSS and NGINX Plus on AlmaLinux, Oracle Linux, and Rocky Linux (#562)
1 parent eeb0d66 commit d2cd395

File tree

28 files changed

+748
-226
lines changed

28 files changed

+748
-226
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Main global owner #
22
#####################
3+
34
* @alessfg
45
/.github/workflows/
56
*.md

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## 0.23.3 (Unreleased)
4+
5+
FEATURES:
6+
7+
* Add AlmaLinux, Oracle Linux and Rocky Linux to the list of NGINX OSS and NGINX Plus tested and supported platforms.
8+
* Add Alpine Linux 3.17 to the NGINX list of tested and supported platforms (and remove Alpine Linux 3.13 from the list of NGINX OSS supported platforms).
9+
10+
BUG FIXES:
11+
12+
* Fix an issue when installing the GeoIP2 module on an UBI 7 container where the the `libmaxminddb` package dependency might not be available via `yum` (if it's not available, `libmaxminddb` is installed from an external source).
13+
314
## 0.23.2 (September 28, 2022)
415

516
FEATURES:

README.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,22 +74,31 @@ The NGINX Ansible role supports all platforms supported by [NGINX Open Source](h
7474
### NGINX Open Source
7575

7676
```yaml
77+
AlmaLinux:
78+
- 8
79+
- 9
7780
Alpine:
78-
- 3.13
7981
- 3.14
8082
- 3.15
8183
- 3.16
84+
- 3.17
8285
Amazon Linux:
8386
- 2
8487
CentOS:
8588
- 7.4+
8689
Debian:
87-
- buster (10)
8890
- bullseye (11)
91+
Oracle Linux:
92+
- 7
93+
- 8
94+
- 9
8995
Red Hat:
9096
- 7.4+
9197
- 8
9298
- 9
99+
Rocky Linux:
100+
- 8
101+
- 9
93102
SUSE/SLES:
94103
- 12
95104
- 15
@@ -103,17 +112,20 @@ Ubuntu:
103112
### NGINX Plus
104113

105114
```yaml
115+
AlmaLinux:
116+
- 8
117+
- 9
106118
Alpine:
107119
- 3.13
108120
- 3.14
109121
- 3.15
110122
- 3.16
123+
- 3.17
111124
Amazon Linux 2:
112125
- any
113126
CentOS:
114127
- 7.4+
115128
Debian:
116-
- buster (10)
117129
- bullseye (11)
118130
FreeBSD:
119131
- 12.1+
@@ -124,6 +136,9 @@ Red Hat:
124136
- 7.4+
125137
- 8
126138
- 9
139+
Rocky Linux:
140+
- 8
141+
- 9
127142
SUSE/SLES:
128143
- 12
129144
- 15
@@ -210,4 +225,4 @@ You can find the Ansible NGINX Unit role to install NGINX Unit [here](https://gi
210225

211226
[Tom Gamull](https://github.com/magicalyak)
212227

213-
© [F5 Networks, Inc.](https://www.f5.com/) 2018 - 2022
228+
© [F5, Inc.](https://www.f5.com/) 2018 - 2022

defaults/main/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ nginx_type: opensource
1414

1515
# (Optional) Specify which version of NGINX you want to install.
1616
# Default is to install the latest release.
17-
# nginx_version: "=19-1~bionic"
18-
# For NGINX Plus and modules you'll need a wilcard like below (which installs plus-20 and modules)
19-
# nginx_version: "-20*"
17+
# For NGINX Open Source you'll need to specify the relevant release like below (Ubuntu jammy example).
18+
# nginx_version: "=1.23.2-1~jammy"
19+
# For NGINX Plus you'll need to specify the R* release like below (Ubuntu jammy example).
20+
# nginx_version: "=28-1~jammy"
2021

2122
# Start NGINX service.
2223
# Default is true.

molecule/default/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: =1.21.6-r1
7+
version: =1.23.2-r1
88
when: ansible_facts['os_family'] == "Alpine"
99
- name: Set repo if Debian
1010
ansible.builtin.set_fact:
11-
version: =1.21.6-1~{{ ansible_facts['distribution_release'] }}
11+
version: =1.23.2-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: -1.21.6-1.{{ (ansible_facts['distribution'] == "Amazon") | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx
15+
version: -1.23.2-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: =1.21.6-1.sles{{ ansible_facts['distribution_major_version'] }}.ngx
19+
version: =1.23.2-1.sles{{ ansible_facts['distribution_major_version'] }}.ngx
2020
when: ansible_facts['os_family'] == "Suse"
2121
tasks:
2222
- name: Install NGINX

molecule/default/molecule.yml

Lines changed: 61 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,20 @@ lint: |
55
set -e
66
ansible-lint --force-color
77
platforms:
8-
- name: alpine-3.13
9-
image: alpine:3.13
8+
- name: almalinux-8
9+
image: almalinux:8
1010
dockerfile: ../common/Dockerfile.j2
1111
privileged: true
1212
volumes:
1313
- /sys/fs/cgroup:/sys/fs/cgroup:rw
14-
command: /sbin/init
14+
command: /usr/sbin/init
15+
- name: almalinux-9
16+
image: almalinux:9
17+
dockerfile: ../common/Dockerfile.j2
18+
privileged: true
19+
volumes:
20+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
21+
command: /usr/sbin/init
1522
- name: alpine-3.14
1623
image: alpine:3.14
1724
dockerfile: ../common/Dockerfile.j2
@@ -33,6 +40,13 @@ platforms:
3340
volumes:
3441
- /sys/fs/cgroup:/sys/fs/cgroup:rw
3542
command: /sbin/init
43+
- name: alpine-3.17
44+
image: alpine:3.17
45+
dockerfile: ../common/Dockerfile.j2
46+
privileged: true
47+
volumes:
48+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
49+
command: /sbin/init
3650
- name: amazonlinux-2
3751
image: amazonlinux:2
3852
dockerfile: ../common/Dockerfile.j2
@@ -47,6 +61,34 @@ platforms:
4761
volumes:
4862
- /sys/fs/cgroup:/sys/fs/cgroup:rw
4963
command: /usr/sbin/init
64+
- name: debian-bullseye
65+
image: debian:bullseye-slim
66+
dockerfile: ../common/Dockerfile.j2
67+
privileged: true
68+
volumes:
69+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
70+
command: /sbin/init
71+
- name: oraclelinux-7
72+
image: oraclelinux:7
73+
dockerfile: ../common/Dockerfile.j2
74+
privileged: true
75+
volumes:
76+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
77+
command: /usr/sbin/init
78+
- name: oraclelinux-8
79+
image: oraclelinux:8
80+
dockerfile: ../common/Dockerfile.j2
81+
privileged: true
82+
volumes:
83+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
84+
command: /usr/sbin/init
85+
- name: oraclelinux-9
86+
image: oraclelinux:9
87+
dockerfile: ../common/Dockerfile.j2
88+
privileged: true
89+
volumes:
90+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
91+
command: /usr/sbin/init
5092
- name: rhel-7
5193
image: registry.access.redhat.com/ubi7/ubi:7.9
5294
dockerfile: ../common/Dockerfile.j2
@@ -55,33 +97,40 @@ platforms:
5597
- /sys/fs/cgroup:/sys/fs/cgroup:rw
5698
command: /usr/sbin/init
5799
- name: rhel-8
58-
image: registry.access.redhat.com/ubi8/ubi:8.5
100+
image: redhat/ubi8:8.7
59101
dockerfile: ../common/Dockerfile.j2
60102
privileged: true
61103
volumes:
62104
- /sys/fs/cgroup:/sys/fs/cgroup:rw
63105
command: /usr/sbin/init
64106
- name: rhel-9
65-
image: registry.access.redhat.com/ubi9/ubi:9.0.0
107+
image: redhat/ubi9:9.1.0
66108
dockerfile: ../common/Dockerfile.j2
67109
privileged: true
68110
volumes:
69111
- /sys/fs/cgroup:/sys/fs/cgroup:rw
70112
command: /usr/sbin/init
71-
- name: debian-buster
72-
image: debian:buster-slim
113+
- name: rockylinux-8
114+
image: rockylinux:8
73115
dockerfile: ../common/Dockerfile.j2
74116
privileged: true
75117
volumes:
76118
- /sys/fs/cgroup:/sys/fs/cgroup:rw
77-
command: /sbin/init
78-
- name: debian-bullseye
79-
image: debian:bullseye-slim
119+
command: /usr/sbin/init
120+
- name: rockylinux-9
121+
image: rockylinux:9.0.20220720
80122
dockerfile: ../common/Dockerfile.j2
81123
privileged: true
82124
volumes:
83125
- /sys/fs/cgroup:/sys/fs/cgroup:rw
84-
command: /sbin/init
126+
command: /usr/sbin/init
127+
- name: sles15
128+
image: registry.suse.com/bci/bci-base:15.4
129+
dockerfile: ../common/Dockerfile.j2
130+
privileged: true
131+
volumes:
132+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
133+
command: /usr/sbin/init
85134
- name: ubuntu-bionic
86135
image: ubuntu:bionic
87136
dockerfile: ../common/Dockerfile.j2
@@ -103,15 +152,9 @@ platforms:
103152
volumes:
104153
- /sys/fs/cgroup:/sys/fs/cgroup:rw
105154
command: /sbin/init
106-
- name: sles15
107-
image: registry.suse.com/bci/bci-base:15.4
108-
dockerfile: ../common/Dockerfile.j2
109-
privileged: true
110-
volumes:
111-
- /sys/fs/cgroup:/sys/fs/cgroup:rw
112-
command: /usr/sbin/init
113155
provisioner:
114156
name: ansible
157+
log: true
115158
playbooks:
116159
converge: converge.yml
117160
verify: verify.yml

molecule/default/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('1.21.6')
33+
failed_when: version is not search('1.23.2')

molecule/downgrade/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: =1.21.6-r1
7+
version: =1.23.2-r1
88
when: ansible_facts['os_family'] == "Alpine"
99
- name: Set repo if Debian
1010
ansible.builtin.set_fact:
11-
version: =1.21.6-1~{{ ansible_facts['distribution_release'] }}
11+
version: =1.23.2-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: -1.21.6-1.{{ (ansible_facts['distribution'] == "Amazon") | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx
15+
version: -1.23.2-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: =1.21.6-1.sles{{ ansible_facts['distribution_major_version'] }}.ngx
19+
version: =1.23.2-1.sles{{ ansible_facts['distribution_major_version'] }}.ngx
2020
when: ansible_facts['os_family'] == "Suse"
2121
tasks:
2222
- name: Install NGINX

0 commit comments

Comments
 (0)