Skip to content

feat: Add support for Alpine Linux 3.20 #736

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ BREAKING CHANGES:
- 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).
- Remove support for installing NGINX Open Source on Alpine Linux 3.16.

FEATURES:

- Add support for installing NGINX Open Source on Alpine Linux 3.20.

## 0.24.3 (July 11, 2024)

DEPRECATION WARNINGS:
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ Alpine:
- 3.17
- 3.18
- 3.19
- 3.20
Amazon Linux:
- 2
- 2023
Expand Down Expand Up @@ -185,10 +186,10 @@ AlmaLinux:
- 8
- 9
Alpine:
- 3.16
- 3.17
- 3.18
- 3.19
- 3.20
Amazon Linux:
- 2
- 2023
Expand Down
2 changes: 1 addition & 1 deletion molecule/agent/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

- name: Get list of NGINX One dangling instance IDs
ansible.builtin.uri:
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
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
method: GET
headers:
Authorization: APIToken {{ lookup('env', 'ONE_API_TOKEN') }}
Expand Down
8 changes: 8 additions & 0 deletions molecule/agent/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ platforms:
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: alpine-3.20
image: alpine:3.20
dockerfile: ../common/Dockerfile.j2
privileged: true
cgroupns_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: amazonlinux-2
image: amazonlinux:2
platform: x86_64
Expand Down
8 changes: 8 additions & 0 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ platforms:
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: alpine-3.20
image: alpine:3.20
dockerfile: ../common/Dockerfile.j2
privileged: true
cgroupns_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: amazonlinux-2
image: amazonlinux:2
platform: x86_64
Expand Down
8 changes: 8 additions & 0 deletions molecule/distribution/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ platforms:
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: alpine-3.20
image: alpine:3.20
dockerfile: ../common/Dockerfile.j2
privileged: true
cgroupns_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: amazonlinux-2
image: amazonlinux:2
platform: x86_64
Expand Down
10 changes: 9 additions & 1 deletion molecule/downgrade/molecule.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
driver:
name: docker
platforms:
platforms: # Alpine 3.20 only has one version of NGINX OSS available (at the moment) so it's impossible to test the downgrade scenario
- name: almalinux-8
image: almalinux:8
dockerfile: ../common/Dockerfile.j2
Expand Down Expand Up @@ -43,6 +43,14 @@ platforms:
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
# - name: alpine-3.20
# image: alpine:3.20
# dockerfile: ../common/Dockerfile.j2
# privileged: true
# cgroupns_mode: host
# volumes:
# - /sys/fs/cgroup:/sys/fs/cgroup:rw
# command: /sbin/init
- name: amazonlinux-2
image: amazonlinux:2
platform: x86_64
Expand Down
8 changes: 6 additions & 2 deletions molecule/source-version/converge.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
---
- name: Converge
hosts: all
pre_tasks:
- name: Set NGINX version
ansible.builtin.set_fact:
ngx_version: 1.26.1
cacheable: true
tasks:
- name: Install NGINX from source
ansible.builtin.include_role:
name: ansible-role-nginx
vars:
nginx_install_from: source
nginx_branch: stable
nginx_version: "1.25.1"
nginx_version: "{{ ngx_version }}"
nginx_static_modules: [http_ssl_module]
nginx_install_source_build_tools: true
nginx_install_source_pcre: false
Expand Down
13 changes: 13 additions & 0 deletions molecule/source-version/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ platforms:
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: alpine-3.20
image: alpine:3.20
dockerfile: ../common/Dockerfile.j2
privileged: true
cgroupns_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: amazonlinux-2
image: amazonlinux:2
platform: x86_64
Expand Down Expand Up @@ -175,3 +183,8 @@ provisioner:
playbooks:
converge: converge.yml
verify: verify.yml
config_options:
defaults:
fact_caching: jsonfile
fact_caching_connection: /tmp/facts_cache
fact_caching_timeout: 7200
2 changes: 1 addition & 1 deletion molecule/source-version/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
chdir: "{{ ((ansible_facts['system'] | lower is not search('bsd')) | ternary('/etc/nginx', '/usr/local/sbin')) }}"
changed_when: false
register: version
failed_when: version is not search('1.25.1')
failed_when: version is not search(ngx_version | regex_search('([0-9]+\\.){2}[0-9]+'))
8 changes: 8 additions & 0 deletions molecule/source/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ platforms:
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: alpine-3.20
image: alpine:3.20
dockerfile: ../common/Dockerfile.j2
privileged: true
cgroupns_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: amazonlinux-2
image: amazonlinux:2
platform: x86_64
Expand Down
8 changes: 8 additions & 0 deletions molecule/stable/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ platforms:
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: alpine-3.20
image: alpine:3.20
dockerfile: ../common/Dockerfile.j2
privileged: true
cgroupns_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: amazonlinux-2
image: amazonlinux:2
platform: x86_64
Expand Down
8 changes: 8 additions & 0 deletions molecule/uninstall/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ platforms:
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: alpine-3.20
image: alpine:3.20
dockerfile: ../common/Dockerfile.j2
privileged: true
cgroupns_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: amazonlinux-2
image: amazonlinux:2
platform: x86_64
Expand Down
10 changes: 9 additions & 1 deletion molecule/upgrade/molecule.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
driver:
name: docker
platforms:
platforms: # Alpine 3.20 only has one version of NGINX OSS available (at the moment) so it's impossible to test the upgrade scenario
- name: almalinux-8
image: almalinux:8
dockerfile: ../common/Dockerfile.j2
Expand Down Expand Up @@ -43,6 +43,14 @@ platforms:
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
# - name: alpine-3.20
# image: alpine:3.20
# dockerfile: ../common/Dockerfile.j2
# privileged: true
# cgroupns_mode: host
# volumes:
# - /sys/fs/cgroup:/sys/fs/cgroup:rw
# command: /sbin/init
- name: amazonlinux-2
image: amazonlinux:2
platform: x86_64
Expand Down
16 changes: 8 additions & 8 deletions molecule/version/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@
pre_tasks:
- name: Set repo if Alpine
ansible.builtin.set_fact:
ngx_version: =1.25.5-r1
njs_version: =1.25.5.0.8.4-r3
ngx_version: =1.27.0-r2
njs_version: =1.27.0.0.8.5-r2
cacheable: true
when: ansible_facts['os_family'] == "Alpine"
- name: Set repo if Debian
ansible.builtin.set_fact:
ngx_version: =1.25.5-1~{{ ansible_facts['distribution_release'] }}
njs_version: =1.25.5+0.8.4-3~{{ ansible_facts['distribution_release'] }}
ngx_version: =1.27.0-2~{{ ansible_facts['distribution_release'] }}
njs_version: =1.27.0+0.8.5-2~{{ ansible_facts['distribution_release'] }}
cacheable: true
when: ansible_facts['os_family'] == "Debian"
- name: Set repo if Red Hat
ansible.builtin.set_fact:
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
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
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
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
cacheable: true
when: ansible_facts['os_family'] == "RedHat"
- name: Set repo if SLES
ansible.builtin.set_fact:
ngx_version: =1.25.5-1.sles{{ ansible_facts['distribution_major_version'] }}.ngx
njs_version: =1.25.5+0.8.4-3.sles{{ ansible_facts['distribution_major_version'] }}.ngx
ngx_version: =1.27.0-2.sles{{ ansible_facts['distribution_major_version'] }}.ngx
njs_version: =1.27.0+0.8.5-2.sles{{ ansible_facts['distribution_major_version'] }}.ngx
cacheable: true
when: ansible_facts['os_family'] == "Suse"
tasks:
Expand Down
8 changes: 8 additions & 0 deletions molecule/version/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ platforms:
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: alpine-3.20
image: alpine:3.20
dockerfile: ../common/Dockerfile.j2
privileged: true
cgroupns_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: amazonlinux-2
image: amazonlinux:2
platform: x86_64
Expand Down
2 changes: 1 addition & 1 deletion vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ nginx_supported_distributions:
architectures: [x86_64, aarch64, s390x]
alpine:
name: Alpine Linux
versions: [3.17, 3.18, 3.19]
versions: [3.17, 3.18, 3.19, 3.20]
architectures: [x86_64, aarch64]
amazon:
name: Amazon Linux
Expand Down
Loading