From a9642c849abeb77b41aee60b800934e244dc9b6d Mon Sep 17 00:00:00 2001 From: armab Date: Mon, 13 Feb 2017 17:51:59 +0200 Subject: [PATCH 1/3] Add README entry about the new `st2_packs` variable --- README.md | 1 + roles/st2/defaults/main.yml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index f9196392..13c89559 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/roles/st2/defaults/main.yml b/roles/st2/defaults/main.yml index 783db138..d3dfb0e7 100644 --- a/roles/st2/defaults/main.yml +++ b/roles/st2/defaults/main.yml @@ -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) From 6f7216c36f0284cb4550d93ae5d8b7604d50d939 Mon Sep 17 00:00:00 2001 From: armab Date: Mon, 13 Feb 2017 18:48:38 +0200 Subject: [PATCH 2/3] Include packs.yml task --- roles/st2/tasks/main.yml | 5 +++++ roles/st2/tasks/packs.yml | 1 + 2 files changed, 6 insertions(+) create mode 100644 roles/st2/tasks/packs.yml diff --git a/roles/st2/tasks/main.yml b/roles/st2/tasks/main.yml index cb054a29..4ba92fc5 100644 --- a/roles/st2/tasks/main.yml +++ b/roles/st2/tasks/main.yml @@ -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 diff --git a/roles/st2/tasks/packs.yml b/roles/st2/tasks/packs.yml new file mode 100644 index 00000000..ed97d539 --- /dev/null +++ b/roles/st2/tasks/packs.yml @@ -0,0 +1 @@ +--- From 9f3e668d25c0d27962892647d015594065b47ef2 Mon Sep 17 00:00:00 2001 From: armab Date: Mon, 13 Feb 2017 21:15:50 +0200 Subject: [PATCH 3/3] Fix wrong '0' unicode character --- roles/st2/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/st2/tasks/main.yml b/roles/st2/tasks/main.yml index 4ba92fc5..d0cb2747 100644 --- a/roles/st2/tasks/main.yml +++ b/roles/st2/tasks/main.yml @@ -49,5 +49,5 @@ - name: Install and configure StackStorm integration packs include: packs.yml - when: st2_packs|length > 0​ + when: st2_packs|length > 0 tags: st2, packs