This repository has been archived by the owner on Jul 28, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
st2.conf.erb
100 lines (77 loc) · 2.32 KB
/
st2.conf.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# System-wide configuration
<%- rmq_url = "amqp://#{@rmq_username}:#{@rmq_password}@#{@rmq_host}:#{@rmq_port}/#{@rmq_vhost}" -%>
[api]
# Host and port to bind the API server.
host = <%= @api_host %>
port = <%= @api_port %>
logging = /etc/st2/logging.api.conf
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 = <%= @api_allow_origin %>
[stream]
logging = /etc/st2/logging.stream.conf
[sensorcontainer]
logging = /etc/st2/logging.sensorcontainer.conf
[rulesengine]
logging = /etc/st2/logging.rulesengine.conf
[actionrunner]
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
[timersengine]
logging = /etc/st2/logging.timersengine.conf
[workflow_engine]
logging = /etc/st2/logging.workflowengine.conf
[auth]
host = <%= @auth_host %>
port = <%= @auth_port %>
use_ssl = <%= @auth_use_ssl %>
debug = <%= @auth_debug %>
enable = <%= @auth_enable %>
logging = /etc/st2/logging.auth.conf
mode = <%= @auth_mode %>
# Note: Settings bellow are only used in "standalone" mode
backend = <%= @auth_backend %>
backend_kwargs = <%= Chef::JSONCompat.to_json(@auth_backend_kwargs) %>
# Base URL to the API endpoint excluding the version (e.g. http://myhost.net:9101/)
api_url = <%= @api_url %>
[system]
base_path = /opt/stackstorm
# [webui]
# webui_base_url = https://mywebhost.domain
<%- if @syslog_enabled -%>
[syslog]
host = <%= @syslog_host %>
port = <%= @syslog_port %>
facility = <%= @syslog_facility %>
protocol = <%= @syslog_protocol %>
<%- end -%>
[log]
excludes = requests,paramiko
redirect_stderr = False
mask_secrets = <%= @log_mask_secrets %>
[system_user]
user = <%= @system_user %>
ssh_key_file = <%= @ssh_key_file %>
[messaging]
url = <%= rmq_url %>
[ssh_runner]
remote_dir = /tmp
[action_sensor]
triggers_base_url = <%= @api_url %>/v1/triggertypes/
[database]
host = <%= @db_host %>
port = <%= @db_port %>
db_name = <%= @db_name %>
<%- if @db_username and @db_password -%>
username = <%= @db_username %>
password = <%= @db_password %>
<%- end -%>