Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 20.04 and refactoring #335

Merged
merged 53 commits into from
Sep 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
62327bf
remove manage_virtualenv_package param from python profile
rush-skills Jun 23, 2021
cf567a3
update changelog
rush-skills Jun 23, 2021
8bbe000
Remove unused conf file
rush-skills Jun 23, 2021
cfb78f4
remove travis references
rush-skills Jun 23, 2021
08e7ed9
clean old style :: references
rush-skills Jun 23, 2021
57c7453
fix old style fact reference in selinux profile
rush-skills Jun 23, 2021
640150e
cleanup build docs
rush-skills Jun 23, 2021
8fc2d82
update changelog
rush-skills Jun 23, 2021
29975ad
add dev todo to remove anchor
rush-skills Jun 30, 2021
2a984a3
update to ubuntu 20.04
rush-skills Jun 23, 2021
ff25573
add ubuntu20 to kitchen platforms
rush-skills Jun 23, 2021
a0d2c8f
add unstable testing channel for focal
rush-skills Jun 23, 2021
7a6a6d2
update github action build matrix
rush-skills Jun 23, 2021
0251f3b
use mongo 4.4 for st2 version > 3.4
rush-skills Jun 23, 2021
c8154eb
change mongo version 4.4 only for 3.5 not for 3.4
rush-skills Jun 23, 2021
b230228
update mongodb spec with 4.4 as latest version
rush-skills Jun 23, 2021
b0ad153
Add ubuntu18 unstable pipeline
rush-skills Jun 23, 2021
0195239
add centos7 unstable build and comment out u20 stable build
rush-skills Jun 23, 2021
17cd73b
change tests back to stable repo, remove unstable ci refs
rush-skills Jun 30, 2021
2975b18
install mongo 4.4 only on focal
rush-skills Jun 30, 2021
635e4d3
update nodejs version to v14 for st2 >= 3.5
rush-skills Jun 30, 2021
6fae9a3
edit vagrant file to add mongodb 4.4 repo apt key
rush-skills Jun 30, 2021
c7adcea
fix mongodb specs
rush-skills Jun 30, 2021
6f8de4a
fix mongodb fact check for u20
rush-skills Jun 30, 2021
5981f66
update mongo version and test for u20
rush-skills Jun 30, 2021
302a094
fix brackets
rush-skills Jun 30, 2021
a8ed130
try os conditional with if/end
rush-skills Jun 30, 2021
cb4adb2
try if-else for mongodb logic
rush-skills Sep 13, 2021
abb094c
fix typo
rush-skills Sep 14, 2021
d9a9b07
fix tests for u20
rush-skills Sep 14, 2021
9a5e70a
fix rubocop offenses
rush-skills Sep 14, 2021
c6c3cda
fix rubocop offense
rush-skills Sep 14, 2021
78d5052
cleanup old code
rush-skills Sep 14, 2021
03f6055
fix r10k version to 3.9 to prevent https://github.com/puppetlabs/r10k…
rush-skills Sep 14, 2021
69beb99
don't let rabbitmq manage python versions
rush-skills Sep 14, 2021
72c21c4
add software-properties-common in ubuntu images for apt-add-repo
rush-skills Sep 14, 2021
4f4a4a9
merge u20, cleanup and upstream
rush-skills Sep 14, 2021
b4f14b8
Revert changelog, fix old style :: references
rush-skills Sep 14, 2021
1466534
update readme
rush-skills Sep 14, 2021
5bb9299
update build docs
rush-skills Sep 14, 2021
131e403
fix chatops profile failing
rush-skills Sep 14, 2021
043e350
allow running workflow on GH manually
rush-skills Sep 14, 2021
baf21a9
Merge pull request #1 from rush-skills/cleanupandu20
rush-skills Sep 14, 2021
f690b39
fix openssl cert generation
rush-skills Sep 14, 2021
c286547
add safe handling on long CNs for openssl in web profile based on @nm…
rush-skills Sep 15, 2021
d1afc84
Merge pull request #2 from rush-skills/cleanupandu20
rush-skills Sep 15, 2021
2f55e80
remove u18+py36 integration tests
rush-skills Sep 15, 2021
5c459b3
fix typo in u20 dockerfile
rush-skills Sep 15, 2021
5e9a51a
remove all references to deadsnakes ppa and python_enable_unsafe_repo…
rush-skills Sep 15, 2021
249eff3
Merge pull request #3 from rush-skills/cleanupandu20
rush-skills Sep 15, 2021
51bae47
add comment for openssl CN maxlen
rush-skills Sep 15, 2021
9d7e72b
Merge branch 'cleanupandu20'
rush-skills Sep 15, 2021
80ebf16
rubocop cleanups
rush-skills Sep 15, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: build

on:
workflow_dispatch:
push:
branches: ['*']
tags:
Expand Down Expand Up @@ -122,16 +123,14 @@ jobs:
name: 'centos7-puppet7'
- ruby: '2.7'
name: 'centos7-puppet7-python36'
- ruby: '2.7'
name: 'ubuntu16-puppet6'
- ruby: '2.7'
name: 'ubuntu16-puppet7'
- ruby: '2.7'
name: 'ubuntu16-puppet7-python36'
- ruby: '2.7'
name: 'ubuntu18-puppet6'
- ruby: '2.7'
name: 'ubuntu18-puppet7'
- ruby: '2.7'
name: 'ubuntu20-puppet6'
- ruby: '2.7'
name: 'ubuntu20-puppet7'
env:
CHECK: '${{ matrix.check }}'
steps:
Expand Down
44 changes: 16 additions & 28 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,61 +73,49 @@ platforms:
puppetfile_path: build/centos7-puppet7/Puppetfile
manifest: test/fullinstall_python36.pp

# Ubuntu Xenial with Systemd - Puppet 6
- name: ubuntu16-puppet6
driver:
platform: ubuntu
dockerfile: build/ubuntu16-puppet6/Dockerfile.kitchen
run_command: /sbin/init
volume:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
provisioner:
puppetfile_path: build/ubuntu16-puppet6/Puppetfile

# Ubuntu Xenial with Systemd - Puppet 7
- name: ubuntu16-puppet7
# Ubuntu Bionic with Systemd - Puppet 6
- name: ubuntu18-puppet6
driver:
platform: ubuntu
dockerfile: build/ubuntu16-puppet7/Dockerfile.kitchen
dockerfile: build/ubuntu18-puppet6/Dockerfile.kitchen
run_command: /sbin/init
volume:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
provisioner:
puppetfile_path: build/ubuntu16-puppet7/Puppetfile
puppetfile_path: build/ubuntu18-puppet6/Puppetfile

# Ubuntu Xenial with Systemd - Puppet 7 - Python 3.6
- name: ubuntu16-puppet7-python36
# Ubuntu Bionic with Systemd - Puppet 7
- name: ubuntu18-puppet7
driver:
platform: ubuntu
dockerfile: build/ubuntu16-puppet7/Dockerfile.kitchen
dockerfile: build/ubuntu18-puppet7/Dockerfile.kitchen
run_command: /sbin/init
volume:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
provisioner:
puppetfile_path: build/ubuntu16-puppet7/Puppetfile
manifest: test/fullinstall_python36.pp
puppetfile_path: build/ubuntu18-puppet7/Puppetfile

# Ubuntu Bionic with Systemd - Puppet 6
- name: ubuntu18-puppet6
# Ubuntu Focal with Systemd - Puppet 6
- name: ubuntu20-puppet6
driver:
platform: ubuntu
dockerfile: build/ubuntu18-puppet6/Dockerfile.kitchen
dockerfile: build/ubuntu20-puppet6/Dockerfile.kitchen
run_command: /sbin/init
volume:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
provisioner:
puppetfile_path: build/ubuntu18-puppet6/Puppetfile
puppetfile_path: build/ubuntu20-puppet6/Puppetfile

# Ubuntu Bionic with Systemd - Puppet 7
- name: ubuntu18-puppet7
# Ubuntu Focal with Systemd - Puppet 7
- name: ubuntu20-puppet7
driver:
platform: ubuntu
dockerfile: build/ubuntu18-puppet7/Dockerfile.kitchen
dockerfile: build/ubuntu20-puppet7/Dockerfile.kitchen
run_command: /sbin/init
volume:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
provisioner:
puppetfile_path: build/ubuntu18-puppet7/Puppetfile
puppetfile_path: build/ubuntu20-puppet7/Puppetfile

suites:
- name: default
Expand Down
1 change: 0 additions & 1 deletion .pdkignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
/rakelib/
/.rspec
/.rubocop.yml
/.travis.yml
/.yardopts
/spec/
/.vscode/
3 changes: 0 additions & 3 deletions .sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
.gitlab-ci.yml:
# we don't use GitLab
unmanaged: true
.travis.yml:
# we keep our own .travis.yml because of integration testing
unmanaged: true
.vscode/extensions.json:
# we don't use VSCode
unmanaged: true
Expand Down
140 changes: 0 additions & 140 deletions .travis-switch-to-github-actions.yml

This file was deleted.

13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

## Development

- Remove tests for Ubuntu 18.04 and Python3.6, since it's already default. Contributed by @rush-skills.

- Drop support for ubuntu 16.04 and add support for ubuntu 20.04. Contributed by @rush-skills

- Update build docs. Contributed by @rush-skills

- Change old style fact reference in selinux profile. Contributed by @rush-skills

- Cleaned up old style `::` references. Contributed by @rush-skills

- Removed travis references after switch to GitHub Actions. Contributed by @rush-skills

- Removed `files/etc/st2/st2.conf` as the template was no longer used. Contributed by @rush-skills

## 2.2.0 (Jul 14, 2021)

Expand Down
31 changes: 13 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ The `st2` module configures the existing into a complete and dedicated StackStor
* MongoDB
* Postgres
* RabbitMQ
* Redis
* Nginx
* NodeJS

Expand All @@ -69,10 +70,10 @@ and [librarian-puppet](http://librarian-puppet.com/).

* RHEL/CentOS 7 - Puppet 6 - [build/centos7-puppet6/Puppetfile](build/centos7-puppet6/Puppetfile)
* RHEL/CentOS 7 - Puppet 7 - [build/centos7-puppet7/Puppetfile](build/centos7-puppet7/Puppetfile)
* Ubuntu 16.04 - Puppet 6 - [build/ubuntu16-puppet6/Puppetfile](build/ubuntu16-puppet6/Puppetfile)
* Ubuntu 16.04 - Puppet 7 - [build/ubuntu16-puppet7/Puppetfile](build/ubuntu16-puppet7/Puppetfile)
* Ubuntu 18.04 - Puppet 6 - [build/ubuntu18-puppet6/Puppetfile](build/ubuntu18-puppet6/Puppetfile)
* Ubuntu 18.04 - Puppet 7 - [build/ubuntu18-puppet7/Puppetfile](build/ubuntu18-puppet7/Puppetfile)
* Ubuntu 20.04 - Puppet 6 - [build/ubuntu20-puppet6/Puppetfile](build/ubuntu20-puppet6/Puppetfile)
* Ubuntu 20.04 - Puppet 7 - [build/ubuntu20-puppet7/Puppetfile](build/ubuntu20-puppet7/Puppetfile)

### Beginning with st2

Expand Down Expand Up @@ -118,28 +119,16 @@ Hiera data bindings. A few notable parameters to take note of:
**Notes**
* RHEL 7 - The Red Hat subscription repo `'rhel-7-server-optional-rpms'`
will need to be enabled prior to running this module.
* :warning: Ubuntu 16.04 -
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.
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.
Alternatively the Puppet will try to add python3.6 from the 3rd party 'deadsnakes' repository: https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa.
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.
The unsafe PPA `'ppa:deadsnakes/ppa'` https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa
can be enabled if you specify the `st2::python_enable_unsafe_repo: true` (default: `false`)

```puppet
# CentOS/RHEL 7
class { 'st2':
python_version => '3.6',
}

# Ubuntu 16.04 (unsafe deadsnakes PPA will be enabled because of boolean flag)
# Ubuntu 18.04/20.04
class { 'st2':
python_version => 'python3.6',
python_enable_unsafe_repo => true,
}

contain st2::profile::fullinstall
Expand Down Expand Up @@ -224,7 +213,7 @@ The following backends are currently available:


By default the `flat_file` backend is used. To change this you can configure it
when instantiating the `::st2` class in a manifest file:
when instantiating the `st2` class in a manifest file:

``` ruby
class { 'st2':
Expand All @@ -244,7 +233,7 @@ found by looking at the backend class in the `manifests/st2/auth/` directory.
These parameters map 1-for-1 to the configuration options defined in each
backends GitHub page (links above). Backend configurations are passed in as a hash
using the `auth_backend_config` option. This option can be changed when instantiating
the `::st2` class in a manifest file:
the `st2` class in a manifest file:

``` ruby
class { 'st2':
Expand Down Expand Up @@ -445,8 +434,8 @@ $res = run_task('st2::key_get', $stackstorm_target,

### Supported platforms

* Ubuntu 16.04
* Ubuntu 18.04
* Ubuntu 20.04
* RHEL/CentOS 7

### Supported Puppet versions
Expand All @@ -461,6 +450,12 @@ Support for Mistral has been dropped as of StackStorm `3.3.0`.
As of version `1.8` this module no longer supports Mistral (and subsequently PostgreSQL)
Neither Mistral nor Postgresql will be installed or managed by this module.

#### :warning: End-of-Support Notice - Ubuntu 16.04

Support for Ubuntu 16.04 has been dropped as of StackStorm `3.5.0`

As of version `2.3` this module no longer supports Ubuntu 16.04

#### :warning: End-of-Support Notice - CentOS 6

Support for CentOS 6 has been dropped as of StackStorm `3.3.0`.
Expand Down
Loading