Skip to content

Commit 29ecd45

Browse files
authored
Merge pull request #298 from winem/ubuntu-2004-support
Drop U16 and add U20 support
2 parents 1551a3d + 365027a commit 29ecd45

File tree

24 files changed

+96
-90
lines changed

24 files changed

+96
-90
lines changed

.kitchen.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ provisioner:
2222
st2_rbac_enable: yes
2323

2424
platforms:
25-
# Ubuntu Xenial with Systemd
26-
- name: ubuntu-16.04
25+
# Ubuntu Bionic with Systemd
26+
- name: ubuntu-18.04
2727
driver_config:
28-
image: stackstorm/packagingtest:xenial-systemd
28+
image: stackstorm/packagingtest:bionic-systemd
2929
platform: ubuntu
3030
run_command: /sbin/init
3131
volume:
3232
- /sys/fs/cgroup:/sys/fs/cgroup:ro
33-
# Ubuntu Bionic with Systemd
34-
- name: ubuntu-18.04
33+
# Ubuntu Focal with Systemd
34+
- name: ubuntu-20.04
3535
driver_config:
36-
image: stackstorm/packagingtest:bionic-systemd
36+
image: stackstorm/packagingtest:focal-systemd
3737
platform: ubuntu
3838
run_command: /sbin/init
3939
volume:

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ branches:
99

1010
env:
1111
# default is stable repo
12-
- DISTRO=ubuntu-16
1312
- DISTRO=ubuntu-18
13+
- DISTRO=ubuntu-20
1414
- DISTRO=centos-7
1515
- DISTRO=centos-8
1616

1717
# StackStorm 'unstable' repo check
18-
- DISTRO=ubuntu-16 ST2_REPO=unstable
1918
- DISTRO=ubuntu-18 ST2_REPO=unstable
19+
- DISTRO=ubuntu-20 ST2_REPO=unstable
2020
- DISTRO=centos-7 ST2_REPO=unstable
2121
- DISTRO=centos-8 ST2_REPO=unstable
2222

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Aka IFTTT orchestration for Ops.
99
[![Join our community Slack](https://stackstorm-community.herokuapp.com/badge.svg)](https://stackstorm.com/community-signup)
1010

1111
## Supported platforms
12-
* Ubuntu Xenial (16.04)
1312
* Ubuntu Bionic (18.04)
13+
* Ubuntu Focal (20.04)
1414
* RHEL7 / CentOS7
1515
* RHEL8 / CentOS8
1616

@@ -19,7 +19,7 @@ Aka IFTTT orchestration for Ops.
1919
> In order to access StackStorm Web UI, please don't forget to ensure that http/https ports are opened in your firewall system.
2020
2121
## Requirements
22-
At least 2GB of memory and 3.5GB of disk space is required, since StackStorm is shipped with RabbitMQ, Mongo and nginx.
22+
At least 2GB of memory and 3.5GB of disk space is required, since StackStorm is shipped with RabbitMQ, Mongo, Redis and nginx.
2323

2424
## Installation
2525
```sh
@@ -50,7 +50,6 @@ Below is the list of variables you can redefine in your playbook to customize st
5050
| `st2_ldap` | [See `st2_ldap` variable in role defaults](roles/st2/defaults/main.yml) | Settings for LDAP authentication backend. `st2_ldap` is a dictionary and has one item `backend_kwargs`. `backend_kwargs` should be provided as exactly listed in ST2 documentation for [LDAP configuration](https://docs.stackstorm.com/authentication.html#ldap).
5151
| `st2_packs` | `[ st2 ]` | List of packs to install. This flag does not work with a `--python3` only pack.
5252
| `st2_python_packages` | `[ ]` | List of python packages to install into the `/opt/stackstorm/st2` virtualenv. This is needed when deploying alternative auth or coordination backends which depend on Python modules to make them work.
53-
| `st2_u16_add_insecure_py3_ppa` | `false` | Whether permission is granted to install the deadsnakes Python3.6 PPA for Ubuntu 16.
5453
| **st2web**
5554
| `st2web_version` | `latest` | st2web version to install. `present` to install available package, `latest` to get automatic updates, or pin it to numeric version like `2.2.0` or with revision like `2.2.0-1`.
5655
| `st2web_ssl_certificate` | `null` | String with custom SSL certificate (`.crt`). If not provided, self-signed certificate will be generated.
@@ -93,8 +92,8 @@ st2smoketests, you will need to disable proxy for localhost.
9392
There are a few requirements when developing on `ansible-st2`.
9493

9594
These are the platforms we must support (must pass end-to-end testing):
96-
- Ubuntu Xenial
9795
- Ubuntu Bionic
96+
- Ubuntu Focal
9897
- CentOS7
9998
- CentOS8
10099
- RHEL7 (via AWS)
@@ -109,7 +108,7 @@ vagrant up
109108

110109
Other distros:
111110
```sh
112-
vagrant up ubuntu16
111+
vagrant up ubuntu20
113112
vagrant up centos7
114113
vagrant up centos8
115114
```
@@ -120,8 +119,8 @@ You might be interested in other methods to deploy StackStorm engine:
120119
* [Puppet Module](https://github.com/stackstorm/puppet-st2)
121120

122121
* Manual Instructions
123-
* [Ubuntu 16.04](https://docs.stackstorm.com/install/u16.html)
124122
* [Ubuntu 18.04](https://docs.stackstorm.com/install/u18.html)
123+
* [Ubuntu 20.04](https://docs.stackstorm.com/install/u20.html)
125124
* [RHEL8/CentOS8](https://docs.stackstorm.com/install/rhel8.html)
126125
* [RHEL7/CentOS7](https://docs.stackstorm.com/install/rhel7.html)
127126

Vagrantfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
# vi: set ft=ruby :
33

44
VIRTUAL_MACHINES = {
5-
:ubuntu16 => {
6-
:hostname => 'ansible-st2-ubuntu16',
7-
:box => 'ubuntu/xenial64',
8-
},
95
:ubuntu18 => {
106
:hostname => 'ansible-st2-ubuntu18',
117
:box => 'ubuntu/bionic64',
128
},
9+
:ubuntu20 => {
10+
:hostname => 'ansible-st2-ubuntu20',
11+
:box => 'ubuntu/focal64',
12+
},
1313
:centos7 => {
1414
:hostname => 'ansible-st2-centos7',
1515
:box => 'centos/7',

meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ galaxy_info:
1717
- name: Ubuntu
1818
versions:
1919
- bionic
20-
- xenial
20+
- focal
2121
- name: EL
2222
versions:
2323
- 7
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
22
# MongoDB default version
3-
mongodb_version: "4.0"
3+
mongodb_version: "{% if ansible_facts.os_family == 'Debian' and ansible_facts.distribution_major_version == '20' %}4.4{% else %}4.0{% endif %}"

roles/StackStorm.mongodb/meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ galaxy_info:
99
- name: Ubuntu
1010
versions:
1111
- bionic
12-
- xenial
12+
- focal
1313
- name: EL
1414
versions:
1515
- 7
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Use the following URL to find the key: https://www.mongodb.org/static/pgp/server-{{ mongodb_major_minor_version }}.asc
22
mongodb_apt_keys:
3-
"3.2": "42F3E95A2C4F08279C4960ADD68FA50FEA312927"
4-
"3.4": "0C49F3730359A14518585931BC711F9BA15703C6"
53
"3.6": "2930ADAE8CAF5059EE73BB4B58712A2291FA4AD5"
64
"4.0": "9DA31620334BD75D9DCB49F368818C72E52529D4"
5+
"4.4": "20691EEC35216C63CAF66CE1656408E390CFB1F5"

roles/StackStorm.nginx/meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ galaxy_info:
1010
- name: Ubuntu
1111
versions:
1212
- bionic
13-
- xenial
13+
- focal
1414
- name: EL
1515
versions:
1616
- 7

roles/StackStorm.nodejs/meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ galaxy_info:
1010
- name: Ubuntu
1111
versions:
1212
- bionic
13-
- xenial
13+
- focal
1414
- name: EL
1515
versions:
1616
- 7

roles/StackStorm.rabbitmq/meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ galaxy_info:
99
- name: Ubuntu
1010
versions:
1111
- bionic
12-
- xenial
12+
- focal
1313
- name: EL
1414
versions:
1515
- 7

roles/StackStorm.redis/meta/main.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
galaxy_info:
3+
description: Install redis as Stackstorm coordination backend
4+
author: winem
5+
company: StackStorm
6+
license: Apache 2.0
7+
min_ansible_version: 2.5
8+
platforms:
9+
- name: Ubuntu
10+
versions:
11+
- bionic
12+
- focal
13+
- name: EL
14+
versions:
15+
- 7
16+
- 8
17+
galaxy_tags:
18+
- system
19+
- stackstorm
20+
- st2
21+
- automation
22+
- remediation
23+
- devops
24+
dependencies:
25+
- role: StackStorm.epel
26+
when: ansible_facts.os_family == 'RedHat'

roles/StackStorm.redis/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
dest: /etc/redis/redis.conf
1717
line: supervised systemd
1818
tags: redis
19-
when: ansible_facts.os_family == 'Debian' and ansible_facts.distribution_major_version != "16"
19+
when: ansible_facts.os_family == 'Debian'
2020

2121
- name: Change bind to be ipv4 only if needed
2222
become: yes

roles/StackStorm.st2/defaults/main.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,3 @@ st2_packs:
7575

7676
# Additional python packages to install
7777
st2_python_packages: []
78-
79-
# Whether permission is granted to install the deadsnakes Python3.6 PPA for Ubuntu 16.
80-
#The python3.6 package is a required dependency for the StackStorm st2 package but that is not installable from any of the default Ubuntu 16.04 repositories.
81-
#We recommend switching to Ubuntu 18.04 LTS (Bionic) as a base OS. Support for Ubuntu 16.04 will be removed with future StackStorm versions.
82-
#Alternatively the playbooks will try to add python3.6 from the 3rd party 'deadsnakes' repository: https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa.
83-
#Only set to true, if you are aware of the support and security risks associated with using unofficial 3rd party PPA repository, and you understand that StackStorm does NOT provide ANY support for python3.6 packages on Ubuntu 16.04.
84-
st2_u16_add_insecure_py3_ppa: false

roles/StackStorm.st2/meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ galaxy_info:
99
- name: Ubuntu
1010
versions:
1111
- bionic
12-
- xenial
12+
- focal
1313
- name: EL
1414
versions:
1515
- 7

roles/StackStorm.st2/tasks/auth.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
1+
- name: Include OS-specific variables
2+
include_vars: "{{ item }}"
3+
with_first_found:
4+
- "{{ ansible_facts.os_family | lower }}_{{ ansible_facts.distribution_major_version }}.yml"
5+
- "{{ ansible_facts.os_family | lower }}.yml"
6+
ignore_errors: true
7+
18
- name: auth | Install auth pre-reqs (Debian)
29
become: yes
310
apt:
411
name:
5-
- python-passlib
612
- apache2-utils
13+
- "{{ passlib }}"
714
state: present
815
register: _task
916
retries: 5
1017
delay: 3
1118
until: _task is succeeded
1219
when: ansible_facts.os_family == 'Debian'
1320

14-
- name: Include RedHat OS-specific variables
15-
include_vars: "{{ item }}"
16-
with_first_found:
17-
- "{{ ansible_os_family | lower }}_{{ ansible_distribution_major_version }}.yml"
18-
- "{{ ansible_os_family | lower }}.yml"
19-
ignore_errors: true
20-
when: ansible_facts.os_family == 'RedHat'
21-
2221
- name: auth | Install auth pre-reqs (RedHat)
2322
become: yes
2423
yum:

roles/StackStorm.st2/tasks/main.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
11
---
2-
- name: Ensure python3.6 is available
3-
include_tasks: request_ppa.yml
4-
when: ansible_facts.os_family == 'Debian' and ansible_facts.distribution_major_version == '16'
5-
tags: st2
6-
72
- name: Verify python3-devel is available in enabled repo
83
become: yes
94
shell:

roles/StackStorm.st2/tasks/request_ppa.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

roles/StackStorm.st2/vars/debian.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# List of python variables
2+
---
3+
passlib: python-passlib
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# List of python3 variables
2+
---
3+
passlib: python3-passlib

roles/StackStorm.st2chatops/meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ galaxy_info:
99
- name: Ubuntu
1010
versions:
1111
- bionic
12-
- xenial
12+
- focal
1313
- name: EL
1414
versions:
1515
- 7

roles/StackStorm.st2repo/meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ galaxy_info:
99
- name: Ubuntu
1010
versions:
1111
- bionic
12-
- xenial
12+
- focal
1313
- name: EL
1414
versions:
1515
- 7
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
galaxy_info:
3+
description: Run StackStorm smoketests to verify the setup
4+
author: armab
5+
company: StackStorm
6+
license: Apache 2.0
7+
min_ansible_version: 2.5
8+
platforms:
9+
- name: Ubuntu
10+
versions:
11+
- bionic
12+
- focal
13+
- name: EL
14+
versions:
15+
- 7
16+
- 8
17+
galaxy_tags:
18+
- system
19+
- stackstorm
20+
- st2
21+
- automation
22+
- remediation
23+
- devops
24+
dependencies:
25+
- role: StackStorm.epel
26+
when: ansible_facts.os_family == 'RedHat'
27+
- role: StackStorm.st2repo

roles/StackStorm.st2web/meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ galaxy_info:
1010
- name: Ubuntu
1111
versions:
1212
- bionic
13-
- xenial
13+
- focal
1414
- name: EL
1515
versions:
1616
- 7

0 commit comments

Comments
 (0)