File tree Expand file tree Collapse file tree 12 files changed +91
-65
lines changed Expand file tree Collapse file tree 12 files changed +91
-65
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 0.21.1 (Unreleased)
4
+
5
+ FEATURES:
6
+
7
+ Support installing NGINX OSS in Amazon Linux.
8
+
9
+ ENHANCEMENTS:
10
+
11
+ * Update the README and Ansible metadata matrix of supported distributions.
12
+ * Update the Molecule tests to include the newly supported distributions and remove distributions that are no longer supported.
13
+
3
14
## 0.21.0 (August 11, 2021)
4
15
5
16
BREAKING CHANGES:
Original file line number Diff line number Diff line change @@ -55,26 +55,28 @@ The NGINX Ansible role supports all platforms supported by [NGINX Open Source](h
55
55
56
56
` ` ` yaml
57
57
Alpine:
58
- - 3.10
59
58
- 3.11
60
59
- 3.12
61
60
- 3.13
61
+ - 3.14
62
+ Amazon Linux:
63
+ - 2
62
64
CentOS:
63
65
- 7.4+
64
66
- 8
65
67
Debian:
66
68
- buster
69
+ - bullseye
67
70
Red Hat:
68
71
- 7.4+
69
72
- 8
70
73
SUSE/SLES:
71
74
- 12
72
75
- 15
73
76
Ubuntu:
74
- - xenial
75
77
- bionic
76
78
- focal
77
- - groovy
79
+ - hirsute
78
80
` ` `
79
81
80
82
# ## NGINX Plus
Original file line number Diff line number Diff line change @@ -23,20 +23,22 @@ galaxy_info:
23
23
- name : Debian
24
24
versions :
25
25
- buster
26
+ - bullseye
26
27
- name : EL
27
28
versions :
28
29
- 7
29
30
- 8
30
31
- name : FreeBSD
31
32
versions :
32
- - 11.2
33
+ - 11.4
33
34
- 12.1
35
+ - 13
34
36
- name : Ubuntu
35
37
versions :
36
38
- xenial
37
39
- bionic
38
40
- focal
39
- - groovy
41
+ - hirsute
40
42
- name : SLES
41
43
versions :
42
44
- 12
Original file line number Diff line number Diff line change @@ -17,15 +17,15 @@ ENV {{ var }} {{ value }}
17
17
RUN \
18
18
if [ $(command -v apt-get) ]; then \
19
19
apt-get update \
20
- && DEBIAN_FRONTEND=noninteractive apt-get install -y aptitude bash ca-certificates curl iproute2 python-apt python3 python3-apt procps sudo systemd systemd-sysv vim \
20
+ && DEBIAN_FRONTEND=noninteractive apt-get install -y aptitude bash ca-certificates curl iproute2 python3 python3-apt procps sudo systemd systemd-sysv vim \
21
21
&& apt-get clean; \
22
22
elif [ $(command -v dnf) ]; then \
23
23
dnf makecache \
24
24
&& dnf --assumeyes install bash iproute sudo /usr/bin/dnf-3 /usr/bin/python3 /usr/bin/python3-config vim \
25
25
&& dnf clean all; \
26
26
elif [ $(command -v yum) ]; then \
27
27
yum makecache fast \
28
- && yum install -y bash iproute sudo /usr/bin/python /usr/bin/python2-config vim yum-plugin-ovl \
28
+ && yum install -y bash iproute initscripts sudo /usr/bin/python /usr/bin/python2-config vim yum-plugin-ovl \
29
29
&& sed -i 's/plugins=0/plugins=1/g' /etc/yum.conf \
30
30
&& yum clean all; \
31
31
elif [ $(command -v zypper) ]; then \
Original file line number Diff line number Diff line change 4
4
pre_tasks :
5
5
- name : Set repo if Alpine
6
6
set_fact :
7
- version : " =1.19.8 -r1"
7
+ version : " =1.21.1 -r1"
8
8
when : ansible_facts['os_family'] == "Alpine"
9
9
- name : Set repo if Debian
10
10
set_fact :
11
- version : " =1.19.8 -1~{{ ansible_facts['distribution_release'] }}"
11
+ version : " =1.21.1 -1~{{ ansible_facts['distribution_release'] }}"
12
12
when : ansible_facts['os_family'] == "Debian"
13
13
- name : Set repo if Red Hat
14
14
set_fact :
15
- version : " -1.19.8 -1.el {{ ansible_facts['distribution_major_version'] }}.ngx"
15
+ version : " -1.21.1 -1.{{ ( ansible_facts['distribution']=='Amazon') | ternary('amzn2', ('el' + ansible_facts[' distribution_major_version'] | string)) }}.ngx"
16
16
when : ansible_facts['os_family'] == "RedHat"
17
17
- name : Enable NGINX @CentOS-AppStream dnf modules
18
18
shell :
Original file line number Diff line number Diff line change 6
6
yamllint .
7
7
ansible-lint --force-color
8
8
platforms :
9
- - name : alpine-3.10
10
- image : alpine:3.10
11
- dockerfile : ../common/Dockerfile.j2
12
- privileged : true
13
- volumes :
14
- - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
15
- command : " /sbin/init"
16
9
- name : alpine-3.11
17
10
image : alpine:3.11
18
11
dockerfile : ../common/Dockerfile.j2
@@ -34,6 +27,20 @@ platforms:
34
27
volumes :
35
28
- " /sys/fs/cgroup:/sys/fs/cgroup:rw"
36
29
command : " /sbin/init"
30
+ - name : alpine-3.14
31
+ image : alpine:3.14
32
+ dockerfile : ../common/Dockerfile.j2
33
+ privileged : true
34
+ volumes :
35
+ - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
36
+ command : " /sbin/init"
37
+ - name : amazonlinux
38
+ image : amazonlinux:2
39
+ dockerfile : ../common/Dockerfile.j2
40
+ privileged : true
41
+ volumes :
42
+ - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
43
+ command : " /usr/sbin/init"
37
44
- name : centos-7
38
45
image : centos:7
39
46
dockerfile : ../common/Dockerfile.j2
@@ -55,8 +62,8 @@ platforms:
55
62
volumes :
56
63
- " /sys/fs/cgroup:/sys/fs/cgroup:rw"
57
64
command : " /sbin/init"
58
- - name : ubuntu-xenial
59
- image : ubuntu:xenial
65
+ - name : debian-bullseye
66
+ image : debian:bullseye-slim
60
67
dockerfile : ../common/Dockerfile.j2
61
68
privileged : true
62
69
volumes :
Original file line number Diff line number Diff line change 6
6
yamllint .
7
7
ansible-lint --force-color
8
8
platforms :
9
- - name : alpine-3.10
10
- image : alpine:3.10
11
- dockerfile : ../common/Dockerfile.j2
12
- privileged : true
13
- volumes :
14
- - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
15
- command : " /sbin/init"
16
9
- name : alpine-3.11
17
10
image : alpine:3.11
18
11
dockerfile : ../common/Dockerfile.j2
@@ -34,6 +27,20 @@ platforms:
34
27
volumes :
35
28
- " /sys/fs/cgroup:/sys/fs/cgroup:rw"
36
29
command : " /sbin/init"
30
+ - name : alpine-3.14
31
+ image : alpine:3.14
32
+ dockerfile : ../common/Dockerfile.j2
33
+ privileged : true
34
+ volumes :
35
+ - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
36
+ command : " /sbin/init"
37
+ - name : amazonlinux
38
+ image : amazonlinux:2
39
+ dockerfile : ../common/Dockerfile.j2
40
+ privileged : true
41
+ volumes :
42
+ - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
43
+ command : " /usr/sbin/init"
37
44
- name : centos-7
38
45
image : centos:7
39
46
dockerfile : ../common/Dockerfile.j2
@@ -55,8 +62,8 @@ platforms:
55
62
volumes :
56
63
- " /sys/fs/cgroup:/sys/fs/cgroup:rw"
57
64
command : " /sbin/init"
58
- - name : ubuntu-xenial
59
- image : ubuntu:xenial
65
+ - name : debian-bullseye
66
+ image : debian:bullseye-slim
60
67
dockerfile : ../common/Dockerfile.j2
61
68
privileged : true
62
69
volumes :
Original file line number Diff line number Diff line change 17
17
- cookie-flag
18
18
- encrypted-session
19
19
- geoip
20
- - geoip2
20
+ - " {{ ansible_facts['distribution'] == 'Amazon' | ternary('', ' geoip2') }} "
21
21
- headers-more
22
22
- image-filter
23
23
- lua
24
24
- njs
25
- - opentracing
25
+ - " {{ ansible_facts['distribution'] == 'Amazon' | ternary('', ' opentracing') }} "
26
26
- passenger
27
27
- perl
28
28
- prometheus
Original file line number Diff line number Diff line change @@ -34,6 +34,13 @@ platforms:
34
34
volumes :
35
35
- " /sys/fs/cgroup:/sys/fs/cgroup:rw"
36
36
command : " /sbin/init"
37
+ - name : amazonlinux
38
+ image : amazonlinux:2
39
+ dockerfile : ../common/Dockerfile.j2
40
+ privileged : true
41
+ volumes :
42
+ - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
43
+ command : " /usr/sbin/init"
37
44
- name : centos-7
38
45
image : centos:7
39
46
dockerfile : ../common/Dockerfile.j2
Original file line number Diff line number Diff line change 6
6
yamllint .
7
7
ansible-lint --force-color
8
8
platforms :
9
- - name : alpine-3.10
10
- image : alpine:3.10
11
- dockerfile : ../common/Dockerfile.j2
12
- privileged : true
13
- volumes :
14
- - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
15
- command : " /sbin/init"
16
9
- name : alpine-3.11
17
10
image : alpine:3.11
18
11
dockerfile : ../common/Dockerfile.j2
@@ -34,6 +27,20 @@ platforms:
34
27
volumes :
35
28
- " /sys/fs/cgroup:/sys/fs/cgroup:rw"
36
29
command : " /sbin/init"
30
+ - name : alpine-3.14
31
+ image : alpine:3.14
32
+ dockerfile : ../common/Dockerfile.j2
33
+ privileged : true
34
+ volumes :
35
+ - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
36
+ command : " /sbin/init"
37
+ - name : amazonlinux
38
+ image : amazonlinux:2
39
+ dockerfile : ../common/Dockerfile.j2
40
+ privileged : true
41
+ volumes :
42
+ - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
43
+ command : " /usr/sbin/init"
37
44
- name : centos-7
38
45
image : centos:7
39
46
dockerfile : ../common/Dockerfile.j2
@@ -55,8 +62,8 @@ platforms:
55
62
volumes :
56
63
- " /sys/fs/cgroup:/sys/fs/cgroup:rw"
57
64
command : " /sbin/init"
58
- - name : ubuntu-xenial
59
- image : ubuntu:xenial
65
+ - name : debian-bullseye
66
+ image : debian:bullseye-slim
60
67
dockerfile : ../common/Dockerfile.j2
61
68
privileged : true
62
69
volumes :
You can’t perform that action at this time.
0 commit comments