Skip to content

Commit 95fe871

Browse files
authored
Add support for Alpine 3.12 (#317)
And remove support for Alpine 3.8
1 parent 9b9b3e8 commit 95fe871

File tree

11 files changed

+119
-149
lines changed

11 files changed

+119
-149
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ BREAKING CHANGES:
77
* The process to install modules has changed. You will now have to use a list variable, `nginx_modules`, instead of manually setting the modules you want to install to `true` or `false`. This change will also simplify adding future supported modules to this role. You can find a list of supported modules for NGINX and NGINX Plus in [`vars/main.yml`](https://github.com/nginxinc/ansible-role-nginx/blob/master/vars/main.yml).
88
* Modules can no longer be added to your NGINX config using this role. Please use the [`nginx_config`](https://github.com/nginxinc/ansible-role-nginx-config) role instead.
99

10+
FEATURES:
11+
12+
* Add Alpine 3.12 to the list of supported platforms
13+
* Remove Alpine 3.8 from the list of supported platforms
14+
1015
ENHANCEMENTS:
1116

1217
* Update Ansible to `2.9.13` and Ansible Lint to `4.3.4`.

README.md

Lines changed: 66 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Ansible NGINX Role
22
==================
33

44
[![Ansible Galaxy](https://img.shields.io/badge/galaxy-nginxinc.nginx-5bbdbf.svg)](https://galaxy.ansible.com/nginxinc/nginx)
5-
[![Build Status](https://travis-ci.org/nginxinc/ansible-role-nginx.svg?branch=master)](https://travis-ci.org/nginxinc/ansible-role-nginx)
5+
[![Build Status](https://travis-ci.org/nginxinc/ansible-role-nginx.svg?branch=main)](https://travis-ci.org/nginxinc/ansible-role-nginx)
66

77
This role installs NGINX Open Source, NGINX Plus, the NGINX Amplify agent, or NGINX Unit on your target host.
88

@@ -48,141 +48,113 @@ The NGINX Ansible role supports all platforms supported by [NGINX Open Source](h
4848

4949
```yaml
5050
Alpine:
51-
versions:
52-
- 3.8
53-
- 3.9
54-
- 3.10
55-
- 3.11
51+
- 3.9
52+
- 3.10
53+
- 3.11
54+
- 3.12
5655
CentOS:
57-
versions:
58-
- 6
59-
- 7
60-
- 8
56+
- 6
57+
- 7
58+
- 8
6159
Debian:
62-
versions:
63-
- stretch
64-
- buster
60+
- stretch
61+
- buster
6562
FreeBSD:
66-
versions:
67-
- 11.2+
68-
- 12
63+
- 11.2+
64+
- 12
6965
RedHat:
70-
versions:
71-
- 6
72-
- 7.4+
73-
- 8
66+
- 6
67+
- 7.4+
68+
- 8
7469
SUSE/SLES:
75-
versions:
76-
- 12
77-
- 15
70+
- 12
71+
- 15
7872
Ubuntu:
79-
versions:
80-
- xenial
81-
- bionic
82-
- focal
73+
- xenial
74+
- bionic
75+
- focal
8376
```
8477
8578
**NGINX Plus**
8679
8780
```yaml
8881
Alpine:
89-
versions:
90-
- 3.8
91-
- 3.9
92-
- 3.10
93-
- 3.11
82+
- 3.9
83+
- 3.10
84+
- 3.11
85+
- 3.12
9486
Amazon Linux:
95-
versions:
96-
- 2018.03
87+
- 2018.03
9788
Amazon Linux 2:
98-
versions:
99-
- any
89+
- any
10090
CentOS:
101-
versions:
102-
- 6.5+
103-
- 7.4+
104-
- 8
91+
- 6.5+
92+
- 7.4+
93+
- 8
10594
Debian:
106-
versions:
107-
- stretch
108-
- buster
95+
- stretch
96+
- buster
10997
FreeBSD:
110-
versions:
111-
- 11.2+
112-
- 12
98+
- 11.2+
99+
- 12
113100
Oracle Linux:
114-
versions:
115-
- 6.5+
116-
- 7.4+
101+
- 6.5+
102+
- 7.4+
117103
RedHat:
118-
versions:
119-
- 6.5+
120-
- 7.4+
121-
- 8
104+
- 6.5+
105+
- 7.4+
106+
- 8
122107
SUSE/SLES:
123-
versions:
124-
- 12
125-
- 15
108+
- 12
109+
- 15
126110
Ubuntu:
127-
versions:
128-
- xenial
129-
- bionic
130-
- focal
111+
- xenial
112+
- bionic
113+
- focal
131114
```
132115
133116
**NGINX Amplify Agent**
134117
135118
```yaml
136119
Amazon Linux:
137-
versions:
138-
- 2017.09
120+
- 2017.09
139121
CentOS:
140-
versions:
141-
- 6
142-
- 7
122+
- 6
123+
- 7
143124
Debian:
144-
versions:
145-
- jessie
146-
- stretch
125+
- jessie
126+
- stretch
147127
RedHat:
148-
versions:
149-
- 6
150-
- 7
128+
- 6
129+
- 7
151130
Ubuntu:
152-
versions:
153-
- xenial
154-
- bionic
155-
- focal
131+
- xenial
132+
- bionic
133+
- focal
156134
```
157135
158136
**NGINX Unit**
159137
160138
```yaml
161139
Amazon Linux:
162-
versions:
163-
- 2018.03
140+
- 2018.03
164141
Amazon Linux 2:
165-
versions:
166-
- any
142+
- any
167143
CentOS:
168-
versions:
169-
- 6
170-
- 7
171-
- 8
144+
- 6
145+
- 7
146+
- 8
172147
Debian:
173-
versions:
174-
- stretch
175-
- buster
148+
- stretch
149+
- buster
176150
RedHat:
177-
versions:
178-
- 6
179-
- 7
180-
- 8
151+
- 6
152+
- 7
153+
- 8
181154
Ubuntu:
182-
versions:
183-
- xenial
184-
- bionic
185-
- focal
155+
- xenial
156+
- bionic
157+
- focal
186158
```
187159
188160
Role Variables

molecule/common/playbooks/default_converge.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
pre_tasks:
55
- name: Set repo if Alpine
66
set_fact:
7-
version: "=1.17.10-r1"
7+
version: "=1.19.1-r1"
88
when: ansible_os_family == "Alpine"
99
- name: Set repo if Debian
1010
set_fact:
11-
version: "=1.17.10-1~{{ ansible_distribution_release }}"
11+
version: "=1.19.1-1~{{ ansible_distribution_release }}"
1212
when: ansible_os_family == "Debian"
1313
- name: Set repo if RedHat
1414
set_fact:
15-
version: "-1.17.10-1.el{{ ansible_distribution_major_version }}.ngx"
15+
version: "-1.19.1-1.el{{ ansible_distribution_major_version }}.ngx"
1616
when: ansible_os_family == "RedHat"
1717
- name: Enable NGINX @CentOS-AppStream dnf modules
1818
shell:

molecule/common/playbooks/template_converge.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,7 @@
66
include_role:
77
name: ansible-role-nginx
88
vars:
9-
# nginx_debug_output: true
10-
11-
nginx_service_modify: true
12-
nginx_service_timeout: 95
13-
nginx_selinux: true
14-
nginx_selinux_tcp_ports:
15-
- 80
16-
- 443
9+
nginx_debug_output: true
1710

1811
nginx_main_template_enable: true
1912
nginx_main_template:

molecule/default_alpine/molecule.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@ lint: |
66
yamllint .
77
ansible-lint --force-color
88
platforms:
9-
- name: alpine-3.8
10-
image: alpine:3.8
11-
dockerfile: ../common/Dockerfile.j2
12-
privileged: true
13-
volumes:
14-
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
15-
command: "/sbin/init"
169
- name: alpine-3.9
1710
image: alpine:3.9
1811
dockerfile: ../common/Dockerfile.j2
@@ -34,6 +27,13 @@ platforms:
3427
volumes:
3528
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
3629
command: "/sbin/init"
30+
- name: alpine-3.12
31+
image: alpine:3.12
32+
dockerfile: ../common/Dockerfile.j2
33+
privileged: true
34+
volumes:
35+
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
36+
command: "/sbin/init"
3737
provisioner:
3838
name: ansible
3939
playbooks:

molecule/module_alpine/molecule.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@ lint: |
66
yamllint .
77
ansible-lint --force-color
88
platforms:
9-
- name: alpine-3.8
10-
image: alpine:3.8
11-
dockerfile: ../common/Dockerfile.j2
12-
privileged: true
13-
volumes:
14-
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
15-
command: "/sbin/init"
169
- name: alpine-3.9
1710
image: alpine:3.9
1811
dockerfile: ../common/Dockerfile.j2
@@ -34,6 +27,13 @@ platforms:
3427
volumes:
3528
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
3629
command: "/sbin/init"
30+
- name: alpine-3.12
31+
image: alpine:3.12
32+
dockerfile: ../common/Dockerfile.j2
33+
privileged: true
34+
volumes:
35+
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
36+
command: "/sbin/init"
3737
provisioner:
3838
name: ansible
3939
playbooks:

molecule/source_alpine/molecule.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,29 @@ lint: |
66
yamllint .
77
ansible-lint --force-color
88
platforms:
9-
- name: alpine-3.8
10-
image: alpine:3.8
9+
- name: alpine-3.9
10+
image: alpine:3.9
1111
dockerfile: ../common/Dockerfile.j2
1212
privileged: true
1313
volumes:
1414
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
1515
command: "/sbin/init"
16-
- name: alpine-3.9
17-
image: alpine:3.9
16+
- name: alpine-3.10
17+
image: alpine:3.10
1818
dockerfile: ../common/Dockerfile.j2
1919
privileged: true
2020
volumes:
2121
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
2222
command: "/sbin/init"
23-
- name: alpine-3.10
24-
image: python:alpine3.10
23+
- name: alpine-3.11
24+
image: alpine:3.11
2525
dockerfile: ../common/Dockerfile.j2
2626
privileged: true
2727
volumes:
2828
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
2929
command: "/sbin/init"
30-
- name: alpine-3.11
31-
image: python:alpine3.11
30+
- name: alpine-3.12
31+
image: alpine:3.12
3232
dockerfile: ../common/Dockerfile.j2
3333
privileged: true
3434
volumes:

molecule/stable_push_alpine/molecule.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@ lint: |
66
yamllint .
77
ansible-lint --force-color
88
platforms:
9-
- name: alpine-3.8
10-
image: alpine:3.8
11-
dockerfile: ../common/Dockerfile.j2
12-
privileged: true
13-
volumes:
14-
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
15-
command: "/sbin/init"
169
- name: alpine-3.9
1710
image: alpine:3.9
1811
dockerfile: ../common/Dockerfile.j2
@@ -34,6 +27,13 @@ platforms:
3427
volumes:
3528
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
3629
command: "/sbin/init"
30+
- name: alpine-3.12
31+
image: alpine:3.12
32+
dockerfile: ../common/Dockerfile.j2
33+
privileged: true
34+
volumes:
35+
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
36+
command: "/sbin/init"
3737
provisioner:
3838
name: ansible
3939
playbooks:

0 commit comments

Comments
 (0)