Skip to content

Commit 329660b

Browse files
authored
Merge pull request #261 from amanda11/master
Ansible-playbooks to install on Centos8
2 parents 9710898 + c379542 commit 329660b

File tree

49 files changed

+193
-21
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+193
-21
lines changed

.kitchen-docker/centos8/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM stackstorm/packagingtest:centos8-systemd
2+
3+
RUN mkdir -p /var/run/sshd
4+
RUN useradd -d /home/<%= @username %> -m -s /bin/bash <%= @username %>
5+
RUN echo <%= "#{@username}:#{@password}" %> | chpasswd
6+
RUN echo '<%= @username %> ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
7+
RUN mkdir -p /home/<%= @username %>/.ssh
8+
RUN chown -R <%= @username %> /home/<%= @username %>/.ssh
9+
RUN chmod 0700 /home/<%= @username %>/.ssh
10+
RUN touch /home/<%= @username %>/.ssh/authorized_keys
11+
RUN chown <%= @username %> /home/<%= @username %>/.ssh/authorized_keys
12+
RUN chmod 0600 /home/<%= @username %>/.ssh/authorized_keys
13+
RUN echo '<%= IO.read(@public_key).strip %>' >> /home/<%= @username %>/.ssh/authorized_keys

.kitchen.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ platforms:
5252
run_command: /sbin/init
5353
volume:
5454
- /sys/fs/cgroup:/sys/fs/cgroup:ro
55+
# CentOS8 with Systemd
56+
- name: centos-8
57+
driver_config:
58+
platform: centos
59+
dockerfile: .kitchen-docker/centos8/Dockerfile
60+
run_command: /sbin/init
61+
volume:
62+
- /sys/fs/cgroup:/sys/fs/cgroup:ro
5563

5664
suites:
5765
- name: default

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ env:
1313
- DISTRO=ubuntu-16 LICENSE='BWC_LICENSE_ENTERPRISE'
1414
- DISTRO=centos-6 LICENSE='BWC_LICENSE_ENTERPRISE'
1515
- DISTRO=centos-7 LICENSE='BWC_LICENSE_ENTERPRISE'
16+
- DISTRO=centos-8 LICENSE='BWC_LICENSE_ENTERPRISE'
1617

1718
# StackStorm 'unstable' repo check
1819
- DISTRO=ubuntu-14 ST2_REPO=unstable EWC_REPO=enterprise-unstable LICENSE='BWC_LICENSE_ENTERPRISE_UNSTABLE'
1920
- DISTRO=ubuntu-16 ST2_REPO=unstable EWC_REPO=enterprise-unstable LICENSE='BWC_LICENSE_ENTERPRISE_UNSTABLE'
2021
- DISTRO=centos-6 ST2_REPO=unstable EWC_REPO=enterprise-unstable LICENSE='BWC_LICENSE_ENTERPRISE_UNSTABLE'
2122
- DISTRO=centos-7 ST2_REPO=unstable EWC_REPO=enterprise-unstable LICENSE='BWC_LICENSE_ENTERPRISE_UNSTABLE'
23+
- DISTRO=centos-8 ST2_REPO=unstable EWC_REPO=enterprise-unstable LICENSE='BWC_LICENSE_ENTERPRISE_UNSTABLE'
2224

2325
before_script:
2426
# Personal token for forked PRs

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@ Aka IFTTT orchestration for Ops.
1313
* Ubuntu Xenial (16.04)
1414
* RHEL6 / CentOS6
1515
* RHEL7 / CentOS7
16+
* RHEL8 / CentOS8
1617

1718
> If you're using the provided Vagrantfile, note that it uses Xenial by default.
1819
20+
> In order to access StackStorm Web UI, please don't forget to ensure that http/https ports are opened in your firewall system.
21+
1922
## Requirements
2023
At least 2GB of memory and 3.5GB of disk space is required, since StackStorm is shipped with RabbitMQ, PostgreSQL, Mongo, nginx and OpenStack Mistral.
2124

@@ -102,8 +105,10 @@ These are the platforms we must support (must pass end-to-end testing):
102105
- Trusty
103106
- CentOS6
104107
- CentOS7
108+
- CentOS8
105109
- RHEL6 (via AWS)
106110
- RHEL7 (via AWS)
111+
- RHEL8 (via AWS)
107112

108113
Must also support Ansible Idempotence (Eg. Ansible-playbook re-run should end with the following results: `changed=0.*failed=0`)
109114

@@ -117,6 +122,7 @@ Other distros:
117122
vagrant up ubuntu14
118123
vagrant up centos6
119124
vagrant up centos7
125+
vagrant up centos8
120126
```
121127

122128
## Other Installers
@@ -127,6 +133,7 @@ You might be interested in other methods to deploy StackStorm engine:
127133

128134
* Manual Instructions
129135
* [Ubuntu 14.04/16.04](https://docs.stackstorm.com/install/deb.html)
136+
* [RHEL8/CentOS8](https://docs.stackstorm.com/install/rhel8.html)
130137
* [RHEL7/CentOS7](https://docs.stackstorm.com/install/rhel7.html)
131138
* [RHEL6/CentOS6](https://docs.stackstorm.com/install/rhel6.html)
132139

Vagrantfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ VIRTUAL_MACHINES = {
1818
:hostname => 'ansible-st2-centos7',
1919
:box => 'centos/7',
2020
},
21+
:centos8 => {
22+
:hostname => 'ansible-st2-centos8',
23+
:box => 'centos/8',
24+
},
2125
}
2226

2327
Vagrant.require_version ">= 1.9.1"

meta/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ galaxy_info:
2222
versions:
2323
- 6
2424
- 7
25+
- 8
2526
categories:
2627
- system
2728
- ops

roles/StackStorm.epel/meta/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ galaxy_info:
1010
versions:
1111
- 6
1212
- 7
13+
- 8
1314
galaxy_tags:
1415
- system

roles/StackStorm.ewc/meta/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ galaxy_info:
1414
versions:
1515
- 6
1616
- 7
17+
- 8
1718
galaxy_tags:
1819
- system
1920
- stackstorm

0 commit comments

Comments
 (0)