You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -81,12 +82,12 @@ The following inputs can be used as `steps.with` keys:
81
82
| `st2_auth_username` | string | | Username used by StackStorm standalone authentication. Set as a secret in GH Actions. |
82
83
| `st2_auth_password` | string | | Password used by StackStorm standalone authentication. Set as a secret in GH Actions. |
83
84
| `st2_packs` | string |`"st2"` | Comma separated list of packs to install. If you modify this option, be sure to also include `st2` in the list. |
85
+
| `st2_ansible_extra_vars_file` | string | | Relative path from project root to Ansible vars file. If you'd like to adjust more advanced configuration; st2 version, st2.conf, RBAC, chatops, auth, etc. See https://github.com/stackStorm/ansible-st2#variables for the full list of settings. The Ansible vars will take higher precedence over the GHA inputs. |
84
86
| **Cleanup** |
85
87
| `tf_stack_destroy` | bool | `false` | Set to `true` to Destroy the created AWS infrastructure for this instance |
86
88
| `tf_state_bucket_destroy` | bool | `false` | Force purge and deletion of `tf_state_bucket` defined. Any file contained there will be destroyed. `tf_stack_destroy` must also be `true` |
87
89
88
-
89
-
## Note about AWS resource identifiers
90
+
### Note about AWS resource identifiers
90
91
Most resources will contain the tag `GITHUB_ORG-GITHUB_REPO-GITHUB_BRANCH` to make them unique. Because some AWS resources have a length limit, we shorten identifiers to a `60` characters max string.
91
92
92
93
We use the Kubernetes style for this. For example, `Kubernetes` -> `k(# of characters)s` -> `k8s`. And so you might see how compressions are made.
@@ -96,6 +97,48 @@ For some specific resources, we have a `32` characters limit. If the identifier
96
97
### S3 buckets naming
97
98
Bucket names can be made of up to 63 characters. If the length allows us to add `-tf-state`, we will do so. If not, a simple `-tf` will be added.
98
99
100
+
### Advanced StackStorm configuration with Ansible vars
101
+
This action runs [`ansible-st2`](https://github.com/stackStorm/ansible-st2) roles under the hood. You can customize the Ansible configuration by creating a yaml file in your repo. This file will be passed to the Ansible playbook as extra vars. See the [Ansible-st2](https://github.com/stackStorm/ansible-st2#variables) documentation for a full list of available options.
102
+
103
+
Here is an example `st2_vars.yaml` pinning the stackstorm to `v3.8.0`, installing several packs from [StackStorm Exchange](https://exchange.stackstorm.org) and configuring `st2.conf` with extra settings for `garbagecollector`:
104
+
105
+
```yaml
106
+
st2_version: "3.8.0"
107
+
108
+
# Install specific pack versions from StackStorm Exchange
# Action executions and related objects (live actions, action output objects) older than this value (days) will be automatically deleted. Defaults to None (disabled).
118
+
action_executions_ttl = 90
119
+
```
120
+
121
+
Example GHA deployment job referencing the Ansible `st2_vars.yaml` file:
We encourage to keep your infrastructure codified!
141
+
99
142
## Made with BitOps
100
143
[BitOps](https://bitops.sh/) allows you to define Infrastructure-as-Code for multiple tools in a central place. This action uses BitOps Docker container with prebuilt deployment tools and [Operations Repository Structure](https://bitops.sh/operations-repo-structure/) to organize the necessary Terraform and Ansible steps, create infrastructure and deploy to it.
Copy file name to clipboardExpand all lines: action.yaml
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,9 @@ inputs:
52
52
st2_packs:
53
53
description: 'Comma separated list of packs to install. If you modify this option, be sure to also include `st2` in the list.'
54
54
default: "st2"
55
-
55
+
st2_ansible_extra_vars_file:
56
+
description: "Relative path from project root to Ansible vars file. If you'd like to adjust more advanced configuration; st2 version, st2.conf, RBAC, chatops, auth, etc. See https://github.com/stackStorm/ansible-st2#variables for the full list of settings. The Ansible vars will take higher precedence over the GHA inputs."
57
+
56
58
# Cleanup
57
59
tf_stack_destroy:
58
60
description: 'Set to "true" to Destroy the created AWS infrastructure for this instance'
0 commit comments