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]+'))

0 commit comments

Comments
 (0)