Skip to content

Commit 6ec1b29

Browse files
authored
feat: Add support for Alpine Linux 3.20 (#736)
1 parent 7464c11 commit 6ec1b29

File tree

17 files changed

+110
-16
lines changed

17 files changed

+110
-16
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ BREAKING CHANGES:
77
- Remove support for RHEL 7 based distributions (RHEL/CentOS/Oracle Linux 7). CentOS 7 has reached EoL, RHEL 7 has reached EoM, and Oracle Linux 7 will reach EoL shortly. These distributions will not be supported by new NGINX releases moving forward. If you are still using one of these distributions, please consider upgrading. If you still want to use this role for the time being, please use the previous release (0.24.3). Do note that you will only be able to use NGINX versions released as of the date of the aforementioned release (July 11, 2024).
88
- Remove support for installing NGINX Open Source on Alpine Linux 3.16.
99

10+
FEATURES:
11+
12+
- Add support for installing NGINX Open Source on Alpine Linux 3.20.
13+
1014
## 0.24.3 (July 11, 2024)
1115

1216
DEPRECATION WARNINGS:

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ Alpine:
115115
- 3.17
116116
- 3.18
117117
- 3.19
118+
- 3.20
118119
Amazon Linux:
119120
- 2
120121
- 2023
@@ -185,10 +186,10 @@ AlmaLinux:
185186
- 8
186187
- 9
187188
Alpine:
188-
- 3.16
189189
- 3.17
190190
- 3.18
191191
- 3.19
192+
- 3.20
192193
Amazon Linux:
193194
- 2
194195
- 2023

molecule/agent/cleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
- name: Get list of NGINX One dangling instance IDs
2727
ansible.builtin.uri:
28-
url: https://{{ lookup('env', 'ONE_TENANT') }}.console.ves.volterra.io/api/nginx/one/namespaces/default/instances?paginated=false&filter_fields=hostname&filter_ops=IN&filter_values=almalinux-8|almalinux-9|alpine-3.17|alpine-3.18|alpine-3.19|amazonlinux-2|debian-bullseye|debian-bookworm|oraclelinux-8|oraclelinux-9|rhel-8|rhel-9|rockylinux-8|rockylinux-9|sles-15|ubuntu-focal|ubuntu-jammy
28+
url: https://{{ lookup('env', 'ONE_TENANT') }}.console.ves.volterra.io/api/nginx/one/namespaces/default/instances?paginated=false&filter_fields=hostname&filter_ops=IN&filter_values=almalinux-8|almalinux-9|alpine-3.17|alpine-3.18|alpine-3.19|alpine-3.20|amazonlinux-2|debian-bullseye|debian-bookworm|oraclelinux-8|oraclelinux-9|rhel-8|rhel-9|rockylinux-8|rockylinux-9|sles-15|ubuntu-focal|ubuntu-jammy
2929
method: GET
3030
headers:
3131
Authorization: APIToken {{ lookup('env', 'ONE_API_TOKEN') }}

molecule/agent/molecule.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ platforms:
4343
volumes:
4444
- /sys/fs/cgroup:/sys/fs/cgroup:rw
4545
command: /sbin/init
46+
- name: alpine-3.20
47+
image: alpine:3.20
48+
dockerfile: ../common/Dockerfile.j2
49+
privileged: true
50+
cgroupns_mode: host
51+
volumes:
52+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
53+
command: /sbin/init
4654
- name: amazonlinux-2
4755
image: amazonlinux:2
4856
platform: x86_64

molecule/default/molecule.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ platforms:
4343
volumes:
4444
- /sys/fs/cgroup:/sys/fs/cgroup:rw
4545
command: /sbin/init
46+
- name: alpine-3.20
47+
image: alpine:3.20
48+
dockerfile: ../common/Dockerfile.j2
49+
privileged: true
50+
cgroupns_mode: host
51+
volumes:
52+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
53+
command: /sbin/init
4654
- name: amazonlinux-2
4755
image: amazonlinux:2
4856
platform: x86_64

molecule/distribution/molecule.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ platforms:
4343
volumes:
4444
- /sys/fs/cgroup:/sys/fs/cgroup:rw
4545
command: /sbin/init
46+
- name: alpine-3.20
47+
image: alpine:3.20
48+
dockerfile: ../common/Dockerfile.j2
49+
privileged: true
50+
cgroupns_mode: host
51+
volumes:
52+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
53+
command: /sbin/init
4654
- name: amazonlinux-2
4755
image: amazonlinux:2
4856
platform: x86_64

molecule/downgrade/molecule.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
driver:
33
name: docker
4-
platforms:
4+
platforms: # Alpine 3.20 only has one version of NGINX OSS 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
@@ -43,6 +43,14 @@ platforms:
4343
volumes:
4444
- /sys/fs/cgroup:/sys/fs/cgroup:rw
4545
command: /sbin/init
46+
# - name: alpine-3.20
47+
# image: alpine:3.20
48+
# dockerfile: ../common/Dockerfile.j2
49+
# privileged: true
50+
# cgroupns_mode: host
51+
# volumes:
52+
# - /sys/fs/cgroup:/sys/fs/cgroup:rw
53+
# command: /sbin/init
4654
- name: amazonlinux-2
4755
image: amazonlinux:2
4856
platform: x86_64

molecule/source-version/converge.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
---
22
- name: Converge
33
hosts: all
4+
pre_tasks:
5+
- name: Set NGINX version
6+
ansible.builtin.set_fact:
7+
ngx_version: 1.26.1
8+
cacheable: true
49
tasks:
510
- name: Install NGINX from source
611
ansible.builtin.include_role:
712
name: ansible-role-nginx
813
vars:
914
nginx_install_from: source
10-
nginx_branch: stable
11-
nginx_version: "1.25.1"
15+
nginx_version: "{{ ngx_version }}"
1216
nginx_static_modules: [http_ssl_module]
1317
nginx_install_source_build_tools: true
1418
nginx_install_source_pcre: false

molecule/source-version/molecule.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ platforms:
4343
volumes:
4444
- /sys/fs/cgroup:/sys/fs/cgroup:rw
4545
command: /sbin/init
46+
- name: alpine-3.20
47+
image: alpine:3.20
48+
dockerfile: ../common/Dockerfile.j2
49+
privileged: true
50+
cgroupns_mode: host
51+
volumes:
52+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
53+
command: /sbin/init
4654
- name: amazonlinux-2
4755
image: amazonlinux:2
4856
platform: x86_64
@@ -175,3 +183,8 @@ provisioner:
175183
playbooks:
176184
converge: converge.yml
177185
verify: verify.yml
186+
config_options:
187+
defaults:
188+
fact_caching: jsonfile
189+
fact_caching_connection: /tmp/facts_cache
190+
fact_caching_timeout: 7200

molecule/source-version/verify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@
2222
chdir: "{{ ((ansible_facts['system'] | lower is not search('bsd')) | ternary('/etc/nginx', '/usr/local/sbin')) }}"
2323
changed_when: false
2424
register: version
25-
failed_when: version is not search('1.25.1')
25+
failed_when: version is not search(ngx_version | regex_search('([0-9]+\\.){2}[0-9]+'))

molecule/source/molecule.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ platforms:
4343
volumes:
4444
- /sys/fs/cgroup:/sys/fs/cgroup:rw
4545
command: /sbin/init
46+
- name: alpine-3.20
47+
image: alpine:3.20
48+
dockerfile: ../common/Dockerfile.j2
49+
privileged: true
50+
cgroupns_mode: host
51+
volumes:
52+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
53+
command: /sbin/init
4654
- name: amazonlinux-2
4755
image: amazonlinux:2
4856
platform: x86_64

molecule/stable/molecule.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ platforms:
4343
volumes:
4444
- /sys/fs/cgroup:/sys/fs/cgroup:rw
4545
command: /sbin/init
46+
- name: alpine-3.20
47+
image: alpine:3.20
48+
dockerfile: ../common/Dockerfile.j2
49+
privileged: true
50+
cgroupns_mode: host
51+
volumes:
52+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
53+
command: /sbin/init
4654
- name: amazonlinux-2
4755
image: amazonlinux:2
4856
platform: x86_64

molecule/uninstall/molecule.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ platforms:
4343
volumes:
4444
- /sys/fs/cgroup:/sys/fs/cgroup:rw
4545
command: /sbin/init
46+
- name: alpine-3.20
47+
image: alpine:3.20
48+
dockerfile: ../common/Dockerfile.j2
49+
privileged: true
50+
cgroupns_mode: host
51+
volumes:
52+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
53+
command: /sbin/init
4654
- name: amazonlinux-2
4755
image: amazonlinux:2
4856
platform: x86_64

molecule/upgrade/molecule.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
driver:
33
name: docker
4-
platforms:
4+
platforms: # Alpine 3.20 only has one version of NGINX OSS available (at the moment) so it's impossible to test the upgrade scenario
55
- name: almalinux-8
66
image: almalinux:8
77
dockerfile: ../common/Dockerfile.j2
@@ -43,6 +43,14 @@ platforms:
4343
volumes:
4444
- /sys/fs/cgroup:/sys/fs/cgroup:rw
4545
command: /sbin/init
46+
# - name: alpine-3.20
47+
# image: alpine:3.20
48+
# dockerfile: ../common/Dockerfile.j2
49+
# privileged: true
50+
# cgroupns_mode: host
51+
# volumes:
52+
# - /sys/fs/cgroup:/sys/fs/cgroup:rw
53+
# command: /sbin/init
4654
- name: amazonlinux-2
4755
image: amazonlinux:2
4856
platform: x86_64

molecule/version/converge.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,26 @@
44
pre_tasks:
55
- name: Set repo if Alpine
66
ansible.builtin.set_fact:
7-
ngx_version: =1.25.5-r1
8-
njs_version: =1.25.5.0.8.4-r3
7+
ngx_version: =1.27.0-r2
8+
njs_version: =1.27.0.0.8.5-r2
99
cacheable: true
1010
when: ansible_facts['os_family'] == "Alpine"
1111
- name: Set repo if Debian
1212
ansible.builtin.set_fact:
13-
ngx_version: =1.25.5-1~{{ ansible_facts['distribution_release'] }}
14-
njs_version: =1.25.5+0.8.4-3~{{ ansible_facts['distribution_release'] }}
13+
ngx_version: =1.27.0-2~{{ ansible_facts['distribution_release'] }}
14+
njs_version: =1.27.0+0.8.5-2~{{ ansible_facts['distribution_release'] }}
1515
cacheable: true
1616
when: ansible_facts['os_family'] == "Debian"
1717
- name: Set repo if Red Hat
1818
ansible.builtin.set_fact:
19-
ngx_version: -1.25.5-1.{{ (ansible_facts['distribution'] == "Amazon") | ternary(('amzn' + ansible_facts['distribution_major_version'] | string), ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx
20-
njs_version: -1.25.5+0.8.4-3.{{ (ansible_facts['distribution'] == "Amazon") | ternary(('amzn' + ansible_facts['distribution_major_version'] | string), ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx
19+
ngx_version: -1.27.0-2.{{ (ansible_facts['distribution'] == "Amazon") | ternary(('amzn' + ansible_facts['distribution_major_version'] | string), ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx
20+
njs_version: -1.27.0+0.8.5-2.{{ (ansible_facts['distribution'] == "Amazon") | ternary(('amzn' + ansible_facts['distribution_major_version'] | string), ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx
2121
cacheable: true
2222
when: ansible_facts['os_family'] == "RedHat"
2323
- name: Set repo if SLES
2424
ansible.builtin.set_fact:
25-
ngx_version: =1.25.5-1.sles{{ ansible_facts['distribution_major_version'] }}.ngx
26-
njs_version: =1.25.5+0.8.4-3.sles{{ ansible_facts['distribution_major_version'] }}.ngx
25+
ngx_version: =1.27.0-2.sles{{ ansible_facts['distribution_major_version'] }}.ngx
26+
njs_version: =1.27.0+0.8.5-2.sles{{ ansible_facts['distribution_major_version'] }}.ngx
2727
cacheable: true
2828
when: ansible_facts['os_family'] == "Suse"
2929
tasks:

molecule/version/molecule.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ platforms:
4343
volumes:
4444
- /sys/fs/cgroup:/sys/fs/cgroup:rw
4545
command: /sbin/init
46+
- name: alpine-3.20
47+
image: alpine:3.20
48+
dockerfile: ../common/Dockerfile.j2
49+
privileged: true
50+
cgroupns_mode: host
51+
volumes:
52+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
53+
command: /sbin/init
4654
- name: amazonlinux-2
4755
image: amazonlinux:2
4856
platform: x86_64

vars/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ nginx_supported_distributions:
2727
architectures: [x86_64, aarch64, s390x]
2828
alpine:
2929
name: Alpine Linux
30-
versions: [3.17, 3.18, 3.19]
30+
versions: [3.17, 3.18, 3.19, 3.20]
3131
architectures: [x86_64, aarch64]
3232
amazon:
3333
name: Amazon Linux

0 commit comments

Comments
 (0)