Add support for Ubuntu Focal (#258)
This commit is contained in:
parent
19fcdf0158
commit
55c2f534ef
94
.travis.yml
94
.travis.yml
@ -4,47 +4,65 @@ services:
|
|||||||
- docker
|
- docker
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- name: "Install Specific Version Test - Debian"
|
- name: "Install Specific Version - Debian/Ubuntu"
|
||||||
env: scenario=default
|
env:
|
||||||
- name: "Install Specific Version Test - Alpine"
|
scenario: default
|
||||||
env: scenario=default_alpine
|
- name: "Install Specific Version - Alpine"
|
||||||
- name: "Install Specific Version Test - CentOS"
|
env:
|
||||||
env: scenario=default_centos
|
scenario: default_alpine
|
||||||
- name: "Install Modules Test - Debian"
|
- name: "Install Specific Version - CentOS"
|
||||||
env: scenario=module
|
env:
|
||||||
- name: "Install Modules Test - Alpine"
|
scenario: default_centos
|
||||||
env: scenario=module_alpine
|
- name: "Install Modules - Debian/Ubuntu"
|
||||||
- name: "Install Modules Test - CentOS"
|
env:
|
||||||
env: scenario=module_centos
|
scenario: module
|
||||||
- name: "Install Stable Branch and Push Configuration Test - Debian"
|
- name: "Install Modules - Alpine"
|
||||||
env: scenario=stable_push
|
env:
|
||||||
- name: "Install Stable Branch and Push Configuration Test - Alpine"
|
scenario: module_alpine
|
||||||
env: scenario=stable_push_alpine
|
- name: "Install Modules - CentOS"
|
||||||
- name: "Install Stable Branch and Push Configuration Test - CentOS"
|
env:
|
||||||
env: scenario=stable_push_centos
|
scenario: module_centos
|
||||||
- name: "Use Template Setting Test - Debian"
|
- name: "Install Stable Branch and Push Configuration - Debian/Ubuntu"
|
||||||
env: scenario=template
|
env:
|
||||||
- name: "Use Template Setting Test - Alpine"
|
scenario: stable_push
|
||||||
env: scenario=template_alpine
|
- name: "Install Stable Branch and Push Configuration - Alpine"
|
||||||
- name: "Use Template Setting Test - CentOS"
|
env:
|
||||||
env: scenario=template_centos
|
scenario: stable_push_alpine
|
||||||
- name: "Install Unit Test - Debian"
|
- name: "Install Stable Branch and Push Configuration - CentOS"
|
||||||
env: scenario=unit
|
env:
|
||||||
- name: "Install Unit Test - Alpine"
|
scenario: stable_push_centos
|
||||||
env: scenario=unit_alpine
|
- name: "Use Template Setting - Debian/Ubuntu"
|
||||||
- name: "Install Unit Test - CentOS"
|
env:
|
||||||
env: scenario=unit_centos
|
scenario: template
|
||||||
- name: "Install from Source Test - Debian"
|
- name: "Use Template Setting - Alpine"
|
||||||
env: scenario=source
|
env:
|
||||||
- name: "Install from Source Test - Alpine"
|
scenario: template_alpine
|
||||||
env: scenario=source_alpine
|
- name: "Use Template Setting - CentOS"
|
||||||
- name: "Install from Source Test - CentOS"
|
env:
|
||||||
env: scenario=source_centos
|
scenario: template_centos
|
||||||
|
- name: "Install Unit - Debian/Ubuntu"
|
||||||
|
env:
|
||||||
|
scenario: unit
|
||||||
|
- name: "Install Unit - Alpine"
|
||||||
|
env:
|
||||||
|
scenario: unit_alpine
|
||||||
|
- name: "Install Unit - CentOS"
|
||||||
|
env:
|
||||||
|
scenario: unit_centos
|
||||||
|
- name: "Install from Source - Debian/Ubuntu"
|
||||||
|
env:
|
||||||
|
scenario: source
|
||||||
|
- name: "Install from Source - Alpine"
|
||||||
|
env:
|
||||||
|
scenario: source_alpine
|
||||||
|
- name: "Install from Source - CentOS"
|
||||||
|
env:
|
||||||
|
scenario: source_centos
|
||||||
before_install:
|
before_install:
|
||||||
- sudo apt-get -qq update
|
- sudo apt-get -qq update
|
||||||
install:
|
install:
|
||||||
- pip install ansible==2.9.6
|
- pip install ansible==2.9.9
|
||||||
- pip install molecule[docker]>=3.0.0
|
- pip install molecule[docker]==3.0.4
|
||||||
- pip install testinfra
|
- pip install testinfra
|
||||||
- pip install ansible-lint
|
- pip install ansible-lint
|
||||||
- pip install flake8
|
- pip install flake8
|
||||||
|
44
README.md
44
README.md
@ -72,6 +72,7 @@ Ubuntu:
|
|||||||
versions:
|
versions:
|
||||||
- xenial
|
- xenial
|
||||||
- bionic
|
- bionic
|
||||||
|
- focal
|
||||||
```
|
```
|
||||||
|
|
||||||
**NGINX Plus**
|
**NGINX Plus**
|
||||||
@ -88,7 +89,7 @@ Amazon Linux:
|
|||||||
- 2018.03
|
- 2018.03
|
||||||
Amazon Linux 2:
|
Amazon Linux 2:
|
||||||
versions:
|
versions:
|
||||||
- LTS
|
- any
|
||||||
CentOS:
|
CentOS:
|
||||||
versions:
|
versions:
|
||||||
- 6.5+
|
- 6.5+
|
||||||
@ -119,6 +120,7 @@ Ubuntu:
|
|||||||
versions:
|
versions:
|
||||||
- xenial
|
- xenial
|
||||||
- bionic
|
- bionic
|
||||||
|
- focal
|
||||||
```
|
```
|
||||||
|
|
||||||
**NGINX Amplify Agent**
|
**NGINX Amplify Agent**
|
||||||
@ -148,33 +150,31 @@ RedHat:
|
|||||||
**NGINX Unit**
|
**NGINX Unit**
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
CentOS:
|
|
||||||
versions:
|
|
||||||
- 6
|
|
||||||
- 7
|
|
||||||
RedHat:
|
|
||||||
versions:
|
|
||||||
- 6
|
|
||||||
- 7
|
|
||||||
Debian:
|
|
||||||
versions:
|
|
||||||
- jessie
|
|
||||||
- stretch
|
|
||||||
- buster
|
|
||||||
Ubuntu:
|
|
||||||
versions:
|
|
||||||
- xenial
|
|
||||||
- bionic
|
|
||||||
Amazon Linux:
|
Amazon Linux:
|
||||||
versions:
|
versions:
|
||||||
- 2018.03
|
- 2018.03
|
||||||
Amazon Linux 2:
|
Amazon Linux 2:
|
||||||
versions:
|
versions:
|
||||||
- 2
|
- any
|
||||||
FreeBSD:
|
CentOS:
|
||||||
versions:
|
versions:
|
||||||
- 10
|
- 6
|
||||||
- 11
|
- 7
|
||||||
|
- 8
|
||||||
|
Debian:
|
||||||
|
versions:
|
||||||
|
- stretch
|
||||||
|
- buster
|
||||||
|
RedHat:
|
||||||
|
versions:
|
||||||
|
- 6
|
||||||
|
- 7
|
||||||
|
- 8
|
||||||
|
Ubuntu:
|
||||||
|
versions:
|
||||||
|
- xenial
|
||||||
|
- bionic
|
||||||
|
- focal
|
||||||
```
|
```
|
||||||
|
|
||||||
Role Variables
|
Role Variables
|
||||||
|
@ -39,7 +39,7 @@ nginx_install_from: nginx_repository
|
|||||||
# Options represent whether to install from source also
|
# Options represent whether to install from source also
|
||||||
# or to install from packages (default). These only apply
|
# or to install from packages (default). These only apply
|
||||||
# if 'nginx_install_from' is set to 'source'
|
# if 'nginx_install_from' is set to 'source'
|
||||||
# For the tools, true means we will isntall from a package
|
# For the tools, true means we will install from a package
|
||||||
# and false means install from source.
|
# and false means install from source.
|
||||||
# 'nginx_install_source_build_tools' will install compiler
|
# 'nginx_install_source_build_tools' will install compiler
|
||||||
# and build tools from packages. If false, you need to have
|
# and build tools from packages. If false, you need to have
|
||||||
|
@ -11,13 +11,15 @@ galaxy_info:
|
|||||||
platforms:
|
platforms:
|
||||||
- name: Alpine
|
- name: Alpine
|
||||||
versions:
|
versions:
|
||||||
- all
|
- any
|
||||||
- name: Amazon
|
- name: Amazon
|
||||||
versions:
|
versions:
|
||||||
- Candidate
|
- 2018.03
|
||||||
|
- name: Amazon Linux 2
|
||||||
|
versions:
|
||||||
|
- any
|
||||||
- name: Debian
|
- name: Debian
|
||||||
versions:
|
versions:
|
||||||
- jessie
|
|
||||||
- stretch
|
- stretch
|
||||||
- buster
|
- buster
|
||||||
- name: EL
|
- name: EL
|
||||||
@ -32,6 +34,7 @@ galaxy_info:
|
|||||||
versions:
|
versions:
|
||||||
- xenial
|
- xenial
|
||||||
- bionic
|
- bionic
|
||||||
|
- focal
|
||||||
- name: SLES
|
- name: SLES
|
||||||
versions:
|
versions:
|
||||||
- 12
|
- 12
|
||||||
|
@ -17,7 +17,7 @@ ENV {{ var }} {{ value }}
|
|||||||
RUN \
|
RUN \
|
||||||
if [ $(command -v apt-get) ]; then \
|
if [ $(command -v apt-get) ]; then \
|
||||||
apt-get update \
|
apt-get update \
|
||||||
&& apt-get install -y python3 sudo bash ca-certificates iproute2 python3-apt aptitude systemd systemd-sysv procps curl \
|
&& DEBIAN_FRONTEND=noninteractive apt-get install -y python3 sudo bash ca-certificates iproute2 python3-apt aptitude systemd systemd-sysv procps curl \
|
||||||
&& apt-get clean; \
|
&& apt-get clean; \
|
||||||
elif [ $(command -v dnf) ]; then \
|
elif [ $(command -v dnf) ]; then \
|
||||||
dnf makecache \
|
dnf makecache \
|
||||||
|
@ -4,15 +4,15 @@
|
|||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: "Set repo if Alpine"
|
- name: "Set repo if Alpine"
|
||||||
set_fact:
|
set_fact:
|
||||||
version: "=1.17.8-r1"
|
version: "=1.17.10-r1"
|
||||||
when: ansible_os_family == "Alpine"
|
when: ansible_os_family == "Alpine"
|
||||||
- name: "Set repo if Debian"
|
- name: "Set repo if Debian"
|
||||||
set_fact:
|
set_fact:
|
||||||
version: "=1.17.8-1~{{ ansible_distribution_release }}"
|
version: "=1.17.10-1~{{ ansible_distribution_release }}"
|
||||||
when: ansible_os_family == "Debian"
|
when: ansible_os_family == "Debian"
|
||||||
- name: "Set repo if RedHat"
|
- name: "Set repo if RedHat"
|
||||||
set_fact:
|
set_fact:
|
||||||
version: "-1.17.8-1.el{{ ansible_distribution_major_version }}.ngx"
|
version: "-1.17.10-1.el{{ ansible_distribution_major_version }}.ngx"
|
||||||
when: ansible_os_family == "RedHat"
|
when: ansible_os_family == "RedHat"
|
||||||
roles:
|
roles:
|
||||||
- role: ansible-role-nginx
|
- role: ansible-role-nginx
|
||||||
|
10
molecule/common/playbook_default_verifier.yml
Normal file
10
molecule/common/playbook_default_verifier.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
- name: Verify
|
||||||
|
hosts: all
|
||||||
|
tasks:
|
||||||
|
- name: "Test NGINX is installed"
|
||||||
|
assert:
|
||||||
|
- name: "Test NGINX service is running and enabled"
|
||||||
|
assert:
|
||||||
|
- name: "Test NGINX is listening"
|
||||||
|
assert:
|
@ -35,6 +35,13 @@ platforms:
|
|||||||
volumes:
|
volumes:
|
||||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||||
command: "/sbin/init"
|
command: "/sbin/init"
|
||||||
|
- name: ubuntu-focal
|
||||||
|
image: ubuntu:focal
|
||||||
|
dockerfile: ../common/Dockerfile.j2
|
||||||
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||||
|
command: "/sbin/init"
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
playbooks:
|
playbooks:
|
||||||
|
@ -35,6 +35,13 @@ platforms:
|
|||||||
volumes:
|
volumes:
|
||||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||||
command: "/sbin/init"
|
command: "/sbin/init"
|
||||||
|
- name: ubuntu-focal
|
||||||
|
image: ubuntu:focal
|
||||||
|
dockerfile: ../common/Dockerfile.j2
|
||||||
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||||
|
command: "/sbin/init"
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
playbooks:
|
playbooks:
|
||||||
|
@ -35,6 +35,13 @@ platforms:
|
|||||||
volumes:
|
volumes:
|
||||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||||
command: "/sbin/init"
|
command: "/sbin/init"
|
||||||
|
- name: ubuntu-focal
|
||||||
|
image: ubuntu:focal
|
||||||
|
dockerfile: ../common/Dockerfile.j2
|
||||||
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||||
|
command: "/sbin/init"
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
playbooks:
|
playbooks:
|
||||||
|
@ -38,6 +38,13 @@ platforms:
|
|||||||
volumes:
|
volumes:
|
||||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||||
command: "/sbin/init"
|
command: "/sbin/init"
|
||||||
|
- name: ubuntu-focal
|
||||||
|
image: ubuntu:focal
|
||||||
|
dockerfile: ../common/Dockerfile.j2
|
||||||
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||||
|
command: "/sbin/init"
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
playbooks:
|
playbooks:
|
||||||
|
@ -38,6 +38,13 @@ platforms:
|
|||||||
volumes:
|
volumes:
|
||||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||||
command: "/sbin/init"
|
command: "/sbin/init"
|
||||||
|
- name: ubuntu-focal
|
||||||
|
image: ubuntu:focal
|
||||||
|
dockerfile: ../common/Dockerfile.j2
|
||||||
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||||
|
command: "/sbin/init"
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
playbooks:
|
playbooks:
|
||||||
|
@ -35,6 +35,13 @@ platforms:
|
|||||||
volumes:
|
volumes:
|
||||||
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||||
command: "/sbin/init"
|
command: "/sbin/init"
|
||||||
|
- name: ubuntu-focal
|
||||||
|
image: ubuntu:focal
|
||||||
|
dockerfile: ../common/Dockerfile.j2
|
||||||
|
privileged: true
|
||||||
|
volumes:
|
||||||
|
- "/sys/fs/cgroup:/sys/fs/cgroup:rw"
|
||||||
|
command: "/sbin/init"
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
playbooks:
|
playbooks:
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
- name: "(Install: Linux) Install Build Tools - Debian/Ubuntu"
|
- name: "(Install: Linux) Install Build Tools - Debian/Ubuntu"
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
- python-minimal
|
- python3-minimal
|
||||||
- build-essential
|
- build-essential
|
||||||
- perl
|
- perl
|
||||||
- tar
|
- tar
|
||||||
|
Loading…
Reference in New Issue
Block a user