-
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from StackStorm/feature/st2_conf
Add vars to configure any 'st2.conf' and 'mistral.conf' settings Closes #20
- Loading branch information
Showing
8 changed files
with
75 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,21 @@ st2_version: latest | |
# used only if 'st2_version' is numeric | ||
st2_revision: 1 | ||
|
||
# Hash with StackStorm configuration settings to set in 'st2.conf' ini file | ||
# See https://github.com/StackStorm/st2/blob/master/conf/st2.conf.sample for a full list | ||
st2_config: {} | ||
# Example: | ||
#st2_config: | ||
# auth: | ||
# debug: True | ||
# enable: True | ||
# database: | ||
# username: st2 | ||
# db_name: st2 | ||
# password: random-password123 | ||
# messaging: | ||
# url: amqp://st2:[email protected]:5672// | ||
|
||
# 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) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
- name: Change '[{{ _conf_section_name }}]' options in st2.conf | ||
become: yes | ||
ini_file: | ||
dest: /etc/st2/st2.conf | ||
section: "{{ _conf_section_name }}" | ||
option: "{{ _conf_option.key }}" | ||
value: "{{ _conf_option.value }}" | ||
with_dict: "{{ _conf_options }}" | ||
loop_control: | ||
loop_var: _conf_option | ||
notify: | ||
- restart st2 | ||
tags: st2, config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,13 @@ st2mistral_db: mistral | |
st2mistral_db_username: mistral | ||
# PostgreSQL DB password for Mistral. | ||
st2mistral_db_password: StackStorm | ||
|
||
# Hash with configuration settings to set in `mistral.conf` ini file. | ||
# See: https://github.com/StackStorm/st2-packages/blob/master/packages/st2mistral/conf/mistral.conf for a full list. | ||
st2mistral_config: {} | ||
# Example: | ||
#st2mistral_config: | ||
# DEFAULT: | ||
# transport_url: rabbit://guest:[email protected]:5672 | ||
# database: | ||
# connection: postgresql://mistral:StackStorm@localhost/mistral |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
- name: Change '[{{ _conf_section_name }}]' options in mistral.conf | ||
become: yes | ||
ini_file: | ||
dest: /etc/mistral/mistral.conf | ||
section: "{{ _conf_section_name }}" | ||
option: "{{ _conf_option.key }}" | ||
value: "{{ _conf_option.value }}" | ||
with_dict: "{{ _conf_options }}" | ||
loop_control: | ||
loop_var: _conf_option | ||
notify: | ||
- restart mistral | ||
tags: st2mistral, config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters