Skip to content

Commit 2ee8e8d

Browse files
authored
Add support for Alpine 3.12 (#23)
1 parent c1fcab2 commit 2ee8e8d

File tree

11 files changed

+91
-101
lines changed

11 files changed

+91
-101
lines changed

.travis.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ language: python
33
services: docker
44
jobs:
55
include:
6+
- name: "(Debian/Ubuntu) Cleanup config and try to install modules"
7+
env:
8+
scenario: cleanup_module
9+
- name: "(Alpine) Cleanup config and try to install modules"
10+
env:
11+
scenario: cleanup_module_alpine
12+
- name: "(CentOS) Cleanup config and try to install modules"
13+
env:
14+
scenario: cleanup_module_centos
615
- name: "(Debian/Ubuntu) Test config templates"
716
env:
817
scenario: default
@@ -12,22 +21,13 @@ jobs:
1221
- name: "(CentOS) Test config templates"
1322
env:
1423
scenario: default_centos
15-
- name: "(Debian/Ubuntu) Install Modules"
16-
env:
17-
scenario: module
18-
- name: "(Alpine) Install Modules"
19-
env:
20-
scenario: module_alpine
21-
- name: "(CentOS) Install Modules"
22-
env:
23-
scenario: module_centos
24-
- name: "(Debian/Ubuntu) Install Stable Branch and Push Configuration"
24+
- name: "(Debian/Ubuntu) Install stable branch and push a config"
2525
env:
2626
scenario: stable_push
27-
- name: "(Alpine) Install Stable Branch and Push Configuration"
27+
- name: "(Alpine) Install stable branch and push a config"
2828
env:
2929
scenario: stable_push_alpine
30-
- name: "(CentOS) Install Stable Branch and Push Configuration"
30+
- name: "(CentOS) Install stable branch and push a config"
3131
env:
3232
scenario: stable_push_centos
3333
before_install:

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ BREAKING CHANGES:
1010

1111
Make sure you only use one variable or the other, since they will overwrite each other. This change will simplify adding future supported modules to this role, and allows you to include any external modules you may wish in your NGINX config.
1212

13+
FEATURES:
14+
15+
* Add Alpine 3.12 to the list of supported platforms
16+
* Remove Alpine 3.8 from the list of supported platforms
17+
1318
ENHANCEMENTS:
1419

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

README.md

Lines changed: 45 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -32,92 +32,75 @@ Use `git clone https://github.com/nginxinc/ansible-role-nginx-config.git` to pul
3232
Platforms
3333
---------
3434

35-
The NGINX Ansible role supports all platforms supported by [NGINX Open Source](https://nginx.org/en/linux_packages.html#mainline) and s[NGINX Plus](https://www.nginx.com/products/technical-specs/):
35+
The NGINX Ansible role supports all platforms supported by [NGINX Open Source](https://nginx.org/en/linux_packages.html#mainline) and [NGINX Plus](https://www.nginx.com/products/technical-specs/):
3636

3737
**NGINX Open Source**
3838

3939
```yaml
4040
Alpine:
41-
versions:
42-
- 3.8
43-
- 3.9
44-
- 3.10
45-
- 3.11
41+
- 3.9
42+
- 3.10
43+
- 3.11
44+
- 3.12
4645
CentOS:
47-
versions:
48-
- 6
49-
- 7
50-
- 8
46+
- 6
47+
- 7
48+
- 8
5149
Debian:
52-
versions:
53-
- stretch
54-
- buster
50+
- stretch
51+
- buster
5552
FreeBSD:
56-
versions:
57-
- 11.2+
58-
- 12
53+
- 11.2+
54+
- 12
5955
RedHat:
60-
versions:
61-
- 6
62-
- 7.4+
63-
- 8
56+
- 6
57+
- 7.4+
58+
- 8
6459
SUSE/SLES:
65-
versions:
66-
- 12
67-
- 15
60+
- 12
61+
- 15
6862
Ubuntu:
69-
versions:
70-
- xenial
71-
- bionic
72-
- focal
63+
- xenial
64+
- bionic
65+
- focal
7366
```
7467
7568
**NGINX Plus**
7669
7770
```yaml
7871
Alpine:
79-
versions:
80-
- 3.8
81-
- 3.9
82-
- 3.10
83-
- 3.11
72+
- 3.9
73+
- 3.10
74+
- 3.11
75+
- 3.12
8476
Amazon Linux:
85-
versions:
86-
- 2018.03
77+
- 2018.03
8778
Amazon Linux 2:
88-
versions:
89-
- any
79+
- any
9080
CentOS:
91-
versions:
92-
- 6.5+
93-
- 7.4+
94-
- 8
81+
- 6.5+
82+
- 7.4+
83+
- 8
9584
Debian:
96-
versions:
97-
- stretch
98-
- buster
85+
- stretch
86+
- buster
9987
FreeBSD:
100-
versions:
101-
- 11.2+
102-
- 12
88+
- 11.2+
89+
- 12
10390
Oracle Linux:
104-
versions:
105-
- 6.5+
106-
- 7.4+
91+
- 6.5+
92+
- 7.4+
10793
RedHat:
108-
versions:
109-
- 6.5+
110-
- 7.4+
111-
- 8
94+
- 6.5+
95+
- 7.4+
96+
- 8
11297
SUSE/SLES:
113-
versions:
114-
- 12
115-
- 15
98+
- 12
99+
- 15
116100
Ubuntu:
117-
versions:
118-
- xenial
119-
- bionic
120-
- focal
101+
- xenial
102+
- bionic
103+
- focal
121104
```
122105
123106
Role Variables
@@ -134,8 +117,8 @@ Example Playbooks
134117

135118
Working functional playbook examples can be found in the **`molecule/common`** directory in the following files:
136119

137-
- **[molecule/common/playbooks/default_converge.yml](https://github.com/nginxinc/ansible-role-nginx-config/blob/master/molecule/common/playbooks/default_converge.yml):** Use the NGINX configuration templating variables to create an NGINX configuration file
138-
- **[molecule/common/playbooks/module_converge.yml](https://github.com/nginxinc/ansible-role-nginx-config/blob/master/molecule/common/playbooks/module_converge.yml):** Cleanup NGINX configs and configure NGINX supported modules
120+
- **[molecule/common/playbooks/cleanup_module_converge.yml](https://github.com/nginxinc/ansible-role-nginx-config/blob/master/molecule/common/playbooks/cleanup_module_converge.yml):** Cleanup an NGINX config and configure NGINX supported modules
121+
- **[molecule/common/playbooks/default_converge.yml](https://github.com/nginxinc/ansible-role-nginx-config/blob/master/molecule/common/playbooks/default_converge.yml):** Use the NGINX config templating variables to create an NGINX config
139122
- **[molecule/common/playbooks/stable_push_converge.yml](https://github.com/nginxinc/ansible-role-nginx-config/blob/master/molecule/common/playbooks/stable_push_converge.yml):** Install NGINX using the stable branch and push a preexisting config from your system to your NGINX instance
140123

141124
Do note that if you install this repository via Ansible Galaxy, you will have to replace the role variable in the sample playbooks from `ansible-role-nginx-config` to `nginxinc.nginx_config`.

molecule/module/molecule.yml renamed to molecule/cleanup_module/molecule.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@ provisioner:
4949
name: ansible
5050
playbooks:
5151
prepare: ../common/playbooks/prepare.yml
52-
converge: ../common/playbooks/module_converge.yml
53-
verify: ../common/playbooks/module_verify.yml
52+
converge: ../common/playbooks/cleanup_module_converge.yml
53+
verify: ../common/playbooks/cleanup_module_verify.yml

molecule/module_alpine/molecule.yml renamed to molecule/cleanup_module_alpine/molecule.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ lint: |
1010
yamllint .
1111
ansible-lint --force-color
1212
platforms:
13-
- name: alpine-3.8
14-
image: alpine:3.8
15-
dockerfile: ../common/Dockerfile.j2
16-
privileged: true
17-
volumes:
18-
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
19-
command: "/sbin/init"
2013
- name: alpine-3.9
2114
image: alpine:3.9
2215
dockerfile: ../common/Dockerfile.j2
@@ -38,9 +31,16 @@ platforms:
3831
volumes:
3932
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
4033
command: "/sbin/init"
34+
- name: alpine-3.12
35+
image: alpine:3.12
36+
dockerfile: ../common/Dockerfile.j2
37+
privileged: true
38+
volumes:
39+
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
40+
command: "/sbin/init"
4141
provisioner:
4242
name: ansible
4343
playbooks:
4444
prepare: ../common/playbooks/prepare.yml
45-
converge: ../common/playbooks/module_converge.yml
46-
verify: ../common/playbooks/module_verify.yml
45+
converge: ../common/playbooks/cleanup_module_converge.yml
46+
verify: ../common/playbooks/cleanup_module_verify.yml

molecule/module_centos/molecule.yml renamed to molecule/cleanup_module_centos/molecule.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ provisioner:
3131
name: ansible
3232
playbooks:
3333
prepare: ../common/playbooks/prepare.yml
34-
converge: ../common/playbooks/module_converge.yml
35-
verify: ../common/playbooks/module_verify.yml
34+
converge: ../common/playbooks/cleanup_module_converge.yml
35+
verify: ../common/playbooks/cleanup_module_verify.yml

molecule/common/playbooks/default_converge.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
vars:
99
nginx_config_debug_output: true
1010
nginx_config_selinux: true
11+
nginx_config_selinux_tcp_ports:
12+
- 80
1113

1214
nginx_config_main_template_enable: true
1315
nginx_config_main_template:

molecule/default_alpine/molecule.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ lint: |
1010
yamllint .
1111
ansible-lint --force-color
1212
platforms:
13-
- name: alpine-3.8
14-
image: alpine:3.8
15-
dockerfile: ../common/Dockerfile.j2
16-
privileged: true
17-
volumes:
18-
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
19-
command: "/sbin/init"
2013
- name: alpine-3.9
2114
image: alpine:3.9
2215
dockerfile: ../common/Dockerfile.j2
@@ -38,6 +31,13 @@ platforms:
3831
volumes:
3932
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
4033
command: "/sbin/init"
34+
- name: alpine-3.12
35+
image: alpine:3.12
36+
dockerfile: ../common/Dockerfile.j2
37+
privileged: true
38+
volumes:
39+
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
40+
command: "/sbin/init"
4141
provisioner:
4242
name: ansible
4343
playbooks:

0 commit comments

Comments
 (0)