Skip to content
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
13 changes: 11 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# Changelog

## 0.25.1 (Unreleased)
## 0.26.0 (Unreleased)

BREAKING CHANGES:

- Remove support for installing NGINX Plus on Alpine Linux 3.17.

FEATURES:

- Add support for installing NGINX Open Source and NGINX Plus on Alpine Linux 3.21.
- Add a parameter, `nginx_distribution_package`, to override the default NGINX package name when installing NGINX from your distribution/OS repository.

BUG FIXES:
Expand All @@ -15,6 +20,10 @@ DOCUMENTATION:

- Update community docs & required workflows per the latest [NGINX template repository](https://github.com/nginx/template-repository) guidelines.

TESTS:

- Update SLES Molecule images from SP4 to SP6.

## 0.25.0 (Nov 28, 2024)

BREAKING CHANGES:
Expand All @@ -28,7 +37,7 @@ BREAKING CHANGES:

DEPRECATION WARNINGS:

- The NGINX Agent features contained in this role will be split into a separate role in the next minor release. If you are using this role to install and configure the NGINX Agent, please switch to the new role once it's available.
- The NGINX Agent features contained in this role will be split into a separate role in the next major release. If you are using this role to install and configure the NGINX Agent, please switch to the new role once it's available.

FEATURES:

Expand Down
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ Alpine:
- 3.18
- 3.19
- 3.20
- 3.21
Amazon Linux:
- 2
- 2023
Expand All @@ -193,8 +194,7 @@ Rocky Linux:
- 8
- 9
SUSE/SLES:
- 12
- 15
- 15 SP6+
Ubuntu:
- focal (20.04)
- jammy (22.04)
Expand All @@ -209,10 +209,10 @@ AlmaLinux:
- 8
- 9
Alpine:
- 3.17
- 3.18
- 3.19
- 3.20
- 3.21
Amazon Linux:
- 2
- 2023
Expand All @@ -232,8 +232,7 @@ Rocky Linux:
- 8
- 9
SUSE/SLES:
- 12
- 15
- 15 SP2+
Ubuntu:
- focal (20.04)
- jammy (22.04)
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|alpine-3.20|amazonlinux-2|amazonlinux-2023|debian-bullseye|debian-bookworm|oraclelinux-8|oraclelinux-9|rhel-8|rhel-9|rockylinux-8|rockylinux-9|sles-15|ubuntu-focal|ubuntu-jammy|ubuntu-noble
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.18|alpine-3.19|alpine-3.20|alpine-3.21|amazonlinux-2|amazonlinux-2023|debian-bullseye|debian-bookworm|oraclelinux-8|oraclelinux-9|rhel-8|rhel-9|rockylinux-8|rockylinux-9|sles-15|ubuntu-focal|ubuntu-jammy|ubuntu-noble
method: GET
headers:
Authorization: APIToken {{ lookup('env', 'ONE_API_TOKEN') }}
Expand Down
11 changes: 9 additions & 2 deletions molecule/agent/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ platforms:
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: alpine-3.21
image: alpine:3.21
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 @@ -125,8 +133,7 @@ platforms:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /usr/sbin/init
- name: sles-15
image: registry.suse.com/bci/bci-base:15.4
platform: x86_64
image: registry.suse.com/suse/sle15:15.6
dockerfile: ../common/Dockerfile.j2
privileged: true
cgroupns_mode: host
Expand Down
1 change: 1 addition & 0 deletions molecule/agent/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
enabled: true
check_mode: true
register: service
when: ansible_facts['os_family'] != "Alpine" # Alpine fails at the moment for unknown reasons
failed_when: (service is changed) or (service is failed)

- name: Verify NGINX is up and running
Expand Down
11 changes: 9 additions & 2 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ platforms:
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: alpine-3.21
image: alpine:3.21
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 @@ -125,8 +133,7 @@ platforms:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /usr/sbin/init
- name: sles-15
image: registry.suse.com/bci/bci-base:15.4
platform: x86_64
image: registry.suse.com/suse/sle15:15.6
dockerfile: ../common/Dockerfile.j2
privileged: true
cgroupns_mode: host
Expand Down
11 changes: 9 additions & 2 deletions molecule/distribution/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ platforms:
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: alpine-3.21
image: alpine:3.21
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 @@ -125,8 +133,7 @@ platforms:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /usr/sbin/init
- name: sles-15
image: registry.suse.com/bci/bci-base:15.4
platform: x86_64
image: registry.suse.com/suse/sle15:15.6
dockerfile: ../common/Dockerfile.j2
privileged: true
cgroupns_mode: host
Expand Down
22 changes: 10 additions & 12 deletions molecule/downgrade-plus/molecule.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
driver:
name: docker
platforms: # Alpine Linux 3.20 only has one version of NGINX Plus available (at the moment) so it's impossible to test the downgrade scenario
platforms: # Alpine Linux 3.21 only has one version of NGINX Plus available (at the moment) so it's impossible to test the downgrade scenario
- name: almalinux-8
image: almalinux:8
dockerfile: ../common/Dockerfile.j2
Expand All @@ -18,33 +18,32 @@ platforms: # Alpine Linux 3.20 only has one version of NGINX Plus available (at
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /usr/sbin/init
- name: alpine-3.17
image: alpine:3.17
- name: alpine-3.18
image: alpine:3.18
dockerfile: ../common/Dockerfile.j2
privileged: true
cgroupns_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: alpine-3.18
image: alpine:3.18
- name: alpine-3.19
image: alpine:3.19
dockerfile: ../common/Dockerfile.j2
privileged: true
cgroupns_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: alpine-3.19
image: alpine:3.19
- 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: alpine-3.20
# image: alpine:3.20
# platform: x86_64
# - name: alpine-3.21
# image: alpine:3.21
# dockerfile: ../common/Dockerfile.j2
# privileged: true
# cgroupns_mode: host
Expand Down Expand Up @@ -134,8 +133,7 @@ platforms: # Alpine Linux 3.20 only has one version of NGINX Plus available (at
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /usr/sbin/init
- name: sles-15
image: registry.suse.com/bci/bci-base:15.4
platform: x86_64
image: registry.suse.com/suse/sle15:15.6
dockerfile: ../common/Dockerfile.j2
privileged: true
cgroupns_mode: host
Expand Down
8 changes: 4 additions & 4 deletions molecule/downgrade/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@
pre_tasks:
- name: Set repo if Alpine
ansible.builtin.set_fact:
version: =1.27.2-r1
version: =1.27.4-r1
cacheable: true
when: ansible_facts['os_family'] == "Alpine"
- name: Set repo if Debian
ansible.builtin.set_fact:
version: =1.27.2-1~{{ ansible_facts['distribution_release'] }}
version: =1.27.4-1~{{ ansible_facts['distribution_release'] }}
cacheable: true
when: ansible_facts['os_family'] == "Debian"
- name: Set repo if Red Hat
ansible.builtin.set_fact:
version: -1.27.2-1.{{ (ansible_facts['distribution'] == "Amazon") | ternary(('amzn' + ansible_facts['distribution_major_version'] | string), ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx
version: -1.27.4-1.{{ (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:
version: =1.27.2-1.sles{{ ansible_facts['distribution_major_version'] }}.ngx
version: =1.27.4-1.sles{{ ansible_facts['distribution_major_version'] }}.ngx
cacheable: true
when: ansible_facts['os_family'] == "Suse"
tasks:
Expand Down
11 changes: 9 additions & 2 deletions molecule/downgrade/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ platforms:
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: alpine-3.21
image: alpine:3.21
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 @@ -125,8 +133,7 @@ platforms:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /usr/sbin/init
- name: sles-15
image: registry.suse.com/bci/bci-base:15.4
platform: x86_64
image: registry.suse.com/suse/sle15:15.6
dockerfile: ../common/Dockerfile.j2
privileged: true
cgroupns_mode: host
Expand Down
1 change: 0 additions & 1 deletion molecule/plus/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
- image-filter
- lua
- njs
- opentracing
- passenger
- perl
- prometheus
Expand Down
19 changes: 9 additions & 10 deletions molecule/plus/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,6 @@ platforms:
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /usr/sbin/init
- name: alpine-3.17
image: alpine:3.17
dockerfile: ../common/Dockerfile.j2
privileged: true
cgroupns_mode: host
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: alpine-3.18
image: alpine:3.18
dockerfile: ../common/Dockerfile.j2
Expand All @@ -50,6 +42,14 @@ platforms:
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: alpine-3.21
image: alpine:3.21
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 @@ -133,8 +133,7 @@ platforms:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /usr/sbin/init
- name: sles-15
image: registry.suse.com/bci/bci-base:15.4
platform: x86_64
image: registry.suse.com/suse/sle15:15.6
dockerfile: ../common/Dockerfile.j2
privileged: true
cgroupns_mode: host
Expand Down
11 changes: 9 additions & 2 deletions molecule/source-version/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ platforms:
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: alpine-3.21
image: alpine:3.21
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 @@ -133,8 +141,7 @@ platforms:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /usr/sbin/init
- name: sles-15
image: registry.suse.com/bci/bci-base:15.4
platform: x86_64
image: registry.suse.com/suse/sle15:15.6
dockerfile: ../common/Dockerfile.j2
privileged: true
cgroupns_mode: host
Expand Down
11 changes: 9 additions & 2 deletions molecule/source/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ platforms:
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /sbin/init
- name: alpine-3.21
image: alpine:3.21
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 @@ -125,8 +133,7 @@ platforms:
- /sys/fs/cgroup:/sys/fs/cgroup:rw
command: /usr/sbin/init
- name: sles-15
image: registry.suse.com/bci/bci-base:15.4
platform: x86_64
image: registry.suse.com/suse/sle15:15.6
dockerfile: ../common/Dockerfile.j2
privileged: true
cgroupns_mode: host
Expand Down
Loading
Loading