Skip to content

Commit a4afcec

Browse files
Bump ansible-lint from 5.3.1 to 5.3.2 in /.github/workflows/requirements (#481)
1 parent 96a71e1 commit a4afcec

File tree

15 files changed

+30
-67
lines changed

15 files changed

+30
-67
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ansible-core==2.12.1
22
jinja2==3.0.3
3-
ansible-lint==5.3.1
3+
ansible-lint==5.3.2
44
yamllint==1.26.3
55
molecule[docker]==3.5.2
66
docker==5.0.3

CHANGELOG.md

+10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## 0.23.0 (Unreleased)
4+
5+
BREAKING CHANGES:
6+
7+
CentOS 8 has reached EoL and has thus been removed from the list of supported platforms.
8+
9+
BUG FIXES:
10+
11+
The Molecule `upgrade` scenario verification test no longer has to be updated on each new NGINX OSS release.
12+
313
## 0.22.0 (December 9, 2021)
414

515
BREAKING CHANGES:

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ Amazon Linux:
8181
- 2
8282
CentOS:
8383
- 7.4+
84-
- 8
8584
Debian:
8685
- buster (10)
8786
- bullseye (11)
@@ -109,7 +108,6 @@ Amazon Linux 2:
109108
- any
110109
CentOS:
111110
- 7.4+
112-
- 8
113111
Debian:
114112
- buster (10)
115113
- bullseye (11)

molecule/default/converge.yml

+3-3
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.21.4-r1"
7+
version: "=1.21.5-r1"
88
when: ansible_facts['os_family'] == "Alpine"
99
- name: Set repo if Debian
1010
set_fact:
11-
version: "=1.21.4-1~{{ ansible_facts['distribution_release'] }}"
11+
version: "=1.21.5-1~{{ ansible_facts['distribution_release'] }}"
1212
when: ansible_facts['os_family'] == "Debian"
1313
- name: Set repo if Red Hat
1414
set_fact:
15-
version: "-1.21.4-1.{{ (ansible_facts['distribution']=='Amazon') | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx"
15+
version: "-1.21.5-1.{{ (ansible_facts['distribution']=='Amazon') | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx"
1616
when: ansible_facts['os_family'] == "RedHat"
1717
- name: Enable NGINX @CentOS-AppStream dnf modules
1818
shell:

molecule/default/molecule.yml

-7
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,6 @@ platforms:
4848
volumes:
4949
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
5050
command: "/usr/sbin/init"
51-
- name: centos-8
52-
image: centos:8
53-
dockerfile: ../common/Dockerfile.j2
54-
privileged: true
55-
volumes:
56-
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
57-
command: "/usr/sbin/init"
5851
- name: debian-buster
5952
image: debian:buster-slim
6053
dockerfile: ../common/Dockerfile.j2

molecule/default/verify.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@
3030
chdir: "{{ ((ansible_facts['system'] | lower is not search('bsd')) | ternary('/etc/nginx', '/usr/local/sbin')) }}"
3131
changed_when: false
3232
register: version
33-
failed_when: version is not search('1.21.4')
33+
failed_when: version is not search('1.21.5')

molecule/downgrade/molecule.yml

-7
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,6 @@ platforms:
4141
volumes:
4242
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
4343
command: "/usr/sbin/init"
44-
- name: centos-8
45-
image: centos:8
46-
dockerfile: ../common/Dockerfile.j2
47-
privileged: true
48-
volumes:
49-
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
50-
command: "/usr/sbin/init"
5144
- name: debian-buster
5245
image: debian:buster-slim
5346
dockerfile: ../common/Dockerfile.j2

molecule/module/molecule.yml

-7
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,6 @@ platforms:
4848
volumes:
4949
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
5050
command: "/usr/sbin/init"
51-
- name: centos-8
52-
image: centos:8
53-
dockerfile: ../common/Dockerfile.j2
54-
privileged: true
55-
volumes:
56-
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
57-
command: "/usr/sbin/init"
5851
- name: debian-buster
5952
image: debian:buster-slim
6053
dockerfile: ../common/Dockerfile.j2

molecule/plus/molecule.yml

-7
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,6 @@ platforms:
4848
volumes:
4949
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
5050
command: "/usr/sbin/init"
51-
- name: centos-8
52-
image: centos:8
53-
dockerfile: ../common/Dockerfile.j2
54-
privileged: true
55-
volumes:
56-
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
57-
command: "/usr/sbin/init"
5851
- name: debian-buster
5952
image: debian:buster-slim
6053
dockerfile: ../common/Dockerfile.j2

molecule/source/molecule.yml

-7
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,6 @@ platforms:
4848
volumes:
4949
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
5050
command: "/usr/sbin/init"
51-
- name: centos-8
52-
image: centos:8
53-
dockerfile: ../common/Dockerfile.j2
54-
privileged: true
55-
volumes:
56-
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
57-
command: "/usr/sbin/init"
5851
- name: debian-buster
5952
image: debian:buster-slim
6053
dockerfile: ../common/Dockerfile.j2

molecule/uninstall/molecule.yml

-7
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,6 @@ platforms:
4848
volumes:
4949
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
5050
command: "/usr/sbin/init"
51-
- name: centos-8
52-
image: centos:8
53-
dockerfile: ../common/Dockerfile.j2
54-
privileged: true
55-
volumes:
56-
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
57-
command: "/usr/sbin/init"
5851
- name: debian-buster
5952
image: debian:buster-slim
6053
dockerfile: ../common/Dockerfile.j2

molecule/uninstall_plus/molecule.yml

-7
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,6 @@ platforms:
4848
volumes:
4949
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
5050
command: "/usr/sbin/init"
51-
- name: centos-8
52-
image: centos:8
53-
dockerfile: ../common/Dockerfile.j2
54-
privileged: true
55-
volumes:
56-
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
57-
command: "/usr/sbin/init"
5851
- name: debian-buster
5952
image: debian:buster-slim
6053
dockerfile: ../common/Dockerfile.j2

molecule/upgrade/molecule.yml

-7
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ platforms:
2020
volumes:
2121
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
2222
command: "/usr/sbin/init"
23-
- name: centos-8
24-
image: centos:8
25-
dockerfile: ../common/Dockerfile.j2
26-
privileged: true
27-
volumes:
28-
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
29-
command: "/usr/sbin/init"
3023
- name: debian-buster
3124
image: debian:buster-slim
3225
dockerfile: ../common/Dockerfile.j2

molecule/upgrade/prepare.yml

+3-3
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.21.3-r1"
7+
version: "=1.21.5-r1"
88
when: ansible_facts['os_family'] == "Alpine"
99
- name: Set repo if Debian
1010
set_fact:
11-
version: "=1.21.3-1~{{ ansible_facts['distribution_release'] }}"
11+
version: "=1.21.5-1~{{ ansible_facts['distribution_release'] }}"
1212
when: ansible_facts['os_family'] == "Debian"
1313
- name: Set repo if Red Hat
1414
set_fact:
15-
version: "-1.21.3-1.{{ (ansible_facts['distribution']=='Amazon') | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx"
15+
version: "-1.21.5-1.{{ (ansible_facts['distribution']=='Amazon') | ternary('amzn2', ('el' + ansible_facts['distribution_major_version'] | string)) }}.ngx"
1616
when: ansible_facts['os_family'] == "RedHat"
1717
- name: Enable NGINX @CentOS-AppStream dnf modules
1818
shell:

molecule/upgrade/verify.yml

+12-1
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,21 @@
2424
url: http://localhost
2525
status_code: 200
2626

27+
- name: Fetch NGINX version
28+
uri:
29+
url: https://version.nginx.com/nginx/mainline
30+
return_content: true
31+
check_mode: false
32+
register: nginx_versions
33+
34+
- name: Set NGINX version
35+
set_fact:
36+
nginx_version: "{{ nginx_versions.content | regex_search('([0-9]+\\.){2}[0-9]+') }}"
37+
2738
- name: Verify NGINX has been upgraded
2839
command: nginx -v
2940
args:
3041
chdir: "{{ ((ansible_facts['system'] | lower is not search('bsd')) | ternary('/etc/nginx', '/usr/local/sbin')) }}"
3142
changed_when: false
3243
register: version
33-
failed_when: version is not search('1.21.4')
44+
failed_when: version is not search(nginx_version)

0 commit comments

Comments
 (0)