-
-
Notifications
You must be signed in to change notification settings - Fork 10
Synchronize st2.conf with upstream #33
Changes from all commits
4151287
2d39efa
6b060cc
1851c11
faeb5c7
8c13d80
8ff86b7
2de4c2b
42d8b0b
1bc13a1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,42 @@ | ||
include_attribute 'stackstorm::user' | ||
|
||
# Config defaults options | ||
# Ordered as they appear in original `st2.conf`: | ||
# https://github.com/StackStorm/st2/blob/master/conf/st2.package.conf | ||
default['stackstorm']['config'] = { | ||
api_url: 'http://localhost:9101', | ||
conf_root: '/etc', | ||
debug: false, | ||
api_url: 'http://127.0.0.1:9101', | ||
api_host: '0.0.0.0', | ||
api_port: 9101, | ||
api_mask_secrets: true, | ||
api_allow_origin: '*', | ||
|
||
auth_host: '0.0.0.0', | ||
auth_port: 9100, | ||
auth_use_ssl: false, | ||
auth_debug: false, | ||
auth_enable: true, | ||
rmq_host: 'localhost', | ||
rmq_vhost: nil, | ||
rmq_username: 'guest', | ||
rmq_password: 'guest', | ||
rmq_port: 5672, | ||
allow_origin: '*', | ||
auth_standalone_file: '/etc/st2/htpasswd', | ||
|
||
syslog_enabled: false, | ||
syslog_host: 'localhost', | ||
syslog_host: '127.0.0.1', | ||
syslog_port: 514, | ||
syslog_facility: 'local7', | ||
syslog_protocol: 'udp', | ||
|
||
log_mask_secrets: true, | ||
|
||
system_user: node['stackstorm']['user']['user'], | ||
ssh_key_file: "#{node['stackstorm']['user']['home']}/.ssh/id_rsa", | ||
db_host: 'localhost', | ||
|
||
rmq_host: '127.0.0.1', | ||
rmq_vhost: nil, | ||
rmq_username: 'guest', | ||
rmq_password: 'guest', | ||
rmq_port: 5672, | ||
|
||
db_host: '127.0.0.1', | ||
db_port: 27017, | ||
db_name: 'st2', | ||
db_username: nil, | ||
db_password: nil, | ||
mask_secrets: true | ||
db_password: nil | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,30 +3,46 @@ | |
|
||
[api] | ||
# Host and port to bind the API server. | ||
host = 0.0.0.0 | ||
port = 9101 | ||
logging = <%= @conf_root %>/st2api/console.conf | ||
mask_secrets = <%= @mask_secrets %> | ||
host = <%= @api_host %> | ||
port = <%= @api_port %> | ||
logging = /etc/st2/logging.api.conf | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why remove config option here as well? |
||
mask_secrets = <%= @api_mask_secrets %> | ||
# allow_origin is required for handling CORS in st2 web UI. | ||
# allow_origin = http://myhost1.example.com:3000,http://myhost2.example.com:3000 | ||
allow_origin = <%= @allow_origin %> | ||
allow_origin = <%= @api_allow_origin %> | ||
|
||
[stream] | ||
logging = /etc/st2/logging.stream.conf | ||
|
||
[sensorcontainer] | ||
logging = <%= @conf_root %>/st2reactor/console.conf | ||
logging = /etc/st2/logging.sensorcontainer.conf | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why remove config option? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, included explanation in Commit message:
So There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's outdated bit that is still here from the legacy installer, before introducing actual I'm going to touch more abandoned things like that in upcoming Cookbook Cleanup. |
||
|
||
[rulesengine] | ||
logging = <%= @conf_root %>/st2reactor/console.conf | ||
logging = /etc/st2/logging.rulesengine.conf | ||
|
||
[actionrunner] | ||
logging = <%= @conf_root %>/st2actions/console.conf | ||
logging = /etc/st2/logging.actionrunner.conf | ||
virtualenv_opts = --always-copy | ||
|
||
[resultstracker] | ||
logging = /etc/st2/logging.resultstracker.conf | ||
|
||
[notifier] | ||
logging = /etc/st2/logging.notifier.conf | ||
|
||
[exporter] | ||
logging = /etc/st2/logging.exporter.conf | ||
|
||
[garbagecollector] | ||
logging = /etc/st2/logging.garbagecollector.conf | ||
|
||
[auth] | ||
host = 0.0.0.0 | ||
port = 9100 | ||
host = <%= @auth_host %> | ||
port = <%= @auth_port %> | ||
use_ssl = <%= @auth_use_ssl %> | ||
debug = <%= @debug ? 'true' : 'false' %> | ||
debug = <%= @auth_debug %> | ||
enable = <%= @auth_enable %> | ||
logging = <%= @conf_root %>/st2api/console.conf | ||
logging = /etc/st2/logging.auth.conf | ||
|
||
mode = standalone | ||
# Note: Settings bellow are only used in "standalone" mode | ||
|
@@ -39,6 +55,9 @@ api_url = <%= @api_url %> | |
[system] | ||
base_path = /opt/stackstorm | ||
|
||
# [webui] | ||
# webui_base_url = https://mywebhost.domain | ||
|
||
<%- if @syslog_enabled -%> | ||
[syslog] | ||
host = <%= @syslog_host %> | ||
|
@@ -50,7 +69,7 @@ protocol = <%= @syslog_protocol %> | |
[log] | ||
excludes = requests,paramiko | ||
redirect_stderr = False | ||
mask_secrets = <%= @mask_secrets %> | ||
mask_secrets = <%= @log_mask_secrets %> | ||
|
||
[system_user] | ||
user = <%= @system_user %> | ||
|
@@ -65,12 +84,6 @@ remote_dir = /tmp | |
[action_sensor] | ||
triggers_base_url = <%= @api_url %>/v1/triggertypes/ | ||
|
||
[resultstracker] | ||
logging = <%= @conf_root %>/st2actions/console.conf | ||
|
||
[notifier] | ||
logging = <%= @conf_root %>/st2actions/console.conf | ||
|
||
[database] | ||
host = <%= @db_host %> | ||
port = <%= @db_port %> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should alphabetize this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm using it in a way as it appears in
st2.conf
for the reasons to verify synchronization easier in the future:https://github.com/StackStorm/st2/blob/master/conf/st2.dev.conf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If so, you should add a comment about that since whoever modifies this list next will just add it to the end since its not alphabetized
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Good call!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
much better :)