Skip to content

Implement Pack Install & Configure #117

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Below is the list of variables you can redefine in your playbook to customize st
| **st2**
| `st2_version` | `latest` | StackStorm version to install. Use latest `latest` to get automatic updates or pin it to numeric version like `2.1.1`.
| `st2_revision` | `1` | StackStorm revision to install. Used only with pinned `st2_version`.
| `st2_packs` | `[]` | A list of integration packs to install from [StackStorm Exchange](https://exchange.stackstorm.org/) or GitHub.
| `st2_system_user` | `stanley` | System user from which st2 will execute local/remote shell actions.
| `st2_system_user_in_sudoers` | `yes`| Add `st2_system_user` to the sudoers (recommended for most `st2` features to work).
| `st2_ssh_key_file` | `/home/{{st2_system_user}}/.ssh/{{st2_system_user}}_rsa` | Path to `st2_system_user` SSH private key. It will be autogenerated by default.
Expand Down
3 changes: 3 additions & 0 deletions roles/st2/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ st2_version: latest
# used only if 'st2_version' is numeric
st2_revision: 1

# List of integration packs to install from StackStorm Exchange or GitHub
st2_packs: []

# System user from which st2 will execute local/remote shell actions
st2_system_user: stanley
# Add `st2_system_user` to the sudoers (recommended for most `st2` features to work)
Expand Down
5 changes: 5 additions & 0 deletions roles/st2/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,8 @@
state: started
with_items: "{{ st2_services }}"
tags: st2

- name: Install and configure StackStorm integration packs
include: packs.yml
when: st2_packs|length > 0
tags: st2, packs
1 change: 1 addition & 0 deletions roles/st2/tasks/packs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
---