Skip to content

Commit 48fa0d9

Browse files
authored
feat: Add support for Amazon Linux 2023 (#706)
1 parent 97e7203 commit 48fa0d9

File tree

27 files changed

+136
-16
lines changed

27 files changed

+136
-16
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
FEATURES:
66

77
- Implement the ability to install the NGINX Agent.
8-
- Add Alpine Linux 3.19 to the list of NGINX Open Source and NGINX Plus tested and supported distributions.
8+
- Add Amazon Linux 2023 and Alpine Linux 3.19 to the list of NGINX Open Source and NGINX Plus tested and supported distributions.
99
- Remove Alpine Linux 3.15 from the list of NGINX Open Source and NGINX Plus tested and supported distributions.
1010

1111
ENHANCEMENTS:

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ Alpine:
118118
- 3.19
119119
Amazon Linux:
120120
- 2
121+
- 2023
121122
CentOS:
122123
- 7.4+
123124
Debian:
@@ -156,6 +157,7 @@ Alpine:
156157
- 3.19
157158
Amazon Linux:
158159
- 2
160+
- 2023
159161
CentOS:
160162
- 7.4+
161163
Debian:
@@ -197,6 +199,7 @@ Alpine:
197199
- 3.19
198200
Amazon Linux:
199201
- 2
202+
- 2023
200203
Debian:
201204
- bullseye (11)
202205
- bookwork (12)

molecule/agent/molecule.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ platforms:
6161
volumes:
6262
- /sys/fs/cgroup:/sys/fs/cgroup:rw
6363
command: /usr/sbin/init
64+
- name: amazonlinux-2023
65+
image: amazonlinux:2023
66+
dockerfile: ../common/Dockerfile.j2
67+
privileged: true
68+
cgroupns_mode: host
69+
volumes:
70+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
71+
command: /usr/sbin/init
6472
- name: centos-7
6573
image: centos:7
6674
platform: x86_64

molecule/common/Dockerfile.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN \
2121
&& apt-get clean; \
2222
elif [ $(command -v dnf) ]; then \
2323
dnf makecache \
24-
&& dnf --assumeyes install bash iproute sudo /usr/bin/dnf-3 /usr/bin/python3 /usr/bin/python3-config vim \
24+
&& dnf --assumeyes install bash iproute sudo systemd /usr/bin/dnf-3 /usr/bin/python3 /usr/bin/python3-config vim \
2525
&& dnf clean all; \
2626
elif [ $(command -v yum) ]; then \
2727
yum makecache fast \

molecule/default/molecule.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ platforms:
6161
volumes:
6262
- /sys/fs/cgroup:/sys/fs/cgroup:rw
6363
command: /usr/sbin/init
64+
- name: amazonlinux-2023
65+
image: amazonlinux:2023
66+
dockerfile: ../common/Dockerfile.j2
67+
privileged: true
68+
cgroupns_mode: host
69+
volumes:
70+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
71+
command: /usr/sbin/init
6472
- name: centos-7
6573
image: centos:7
6674
platform: x86_64

molecule/distribution/molecule.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ platforms: # The RHEL UBI 7 image fails to install some NGINX dependencies when
6161
volumes:
6262
- /sys/fs/cgroup:/sys/fs/cgroup:rw
6363
command: /usr/sbin/init
64+
- name: amazonlinux-2023
65+
image: amazonlinux:2023
66+
dockerfile: ../common/Dockerfile.j2
67+
privileged: true
68+
cgroupns_mode: host
69+
volumes:
70+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
71+
command: /usr/sbin/init
6472
- name: centos-7
6573
image: centos:7
6674
platform: x86_64

molecule/downgrade-plus/converge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
when: ansible_facts['os_family'] == "Debian"
1515
- name: Set repo if Red Hat
1616
ansible.builtin.set_fact:
17-
version: -30-1.{{ (ansible_facts['distribution'] == "Amazon") | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx
17+
version: -30-1.{{ (ansible_facts['distribution'] == "Amazon") | ternary(('amzn' + ansible_facts['distribution_major_version'] | string), ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx
1818
cacheable: true
1919
when: ansible_facts['os_family'] == "RedHat"
2020
- name: Set repo if SLES

molecule/downgrade-plus/molecule.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ platforms: # Alpine 3.19 only has one version of NGINX Plus available (at the mo
6161
volumes:
6262
- /sys/fs/cgroup:/sys/fs/cgroup:rw
6363
command: /usr/sbin/init
64+
- name: amazonlinux-2023
65+
image: amazonlinux:2023
66+
dockerfile: ../common/Dockerfile.j2
67+
privileged: true
68+
cgroupns_mode: host
69+
volumes:
70+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
71+
command: /usr/sbin/init
6472
- name: centos-7
6573
image: centos:7
6674
platform: x86_64

molecule/downgrade/converge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
when: ansible_facts['os_family'] == "Debian"
1515
- name: Set repo if Red Hat
1616
ansible.builtin.set_fact:
17-
version: -1.25.3-1.{{ (ansible_facts['distribution'] == "Amazon") | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx
17+
version: -1.25.3-1.{{ (ansible_facts['distribution'] == "Amazon") | ternary(('amzn' + ansible_facts['distribution_major_version'] | string), ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx
1818
cacheable: true
1919
when: ansible_facts['os_family'] == "RedHat"
2020
- name: Set repo if SLES

molecule/downgrade/molecule.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ platforms:
6161
volumes:
6262
- /sys/fs/cgroup:/sys/fs/cgroup:rw
6363
command: /usr/sbin/init
64+
- name: amazonlinux-2023
65+
image: amazonlinux:2023
66+
dockerfile: ../common/Dockerfile.j2
67+
privileged: true
68+
cgroupns_mode: host
69+
volumes:
70+
- /sys/fs/cgroup:/sys/fs/cgroup:rw
71+
command: /usr/sbin/init
6472
- name: centos-7
6573
image: centos:7
6674
platform: x86_64

0 commit comments

Comments
 (0)