-
Notifications
You must be signed in to change notification settings - Fork 17
/
profiles.sample.clj
221 lines (185 loc) · 7.68 KB
/
profiles.sample.clj
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
;; Sample profiles.clj for Yetibot configuration.
;; equivalent to config.sample.edn
;;
;; It defines a dev profile, but you may want to share much of the configuration
;; between dev and prod, using Composite Profiles, optionally overriding
;; specific differences between dev and prod:
;; https://github.com/technomancy/leiningen/blob/master/doc/PROFILES.md#composite-profiles
;;
;; Config is loaded using `environ:` https://github.com/weavejester/environ
;; And exploded into nested maps using `dec`: https://github.com/devth/dec
{:dev
{:env
{:yetibot-log-level "debug"
:yetibot-log-path "/var/log/yetibot/yetibot.log"
:yetibot-log-rolling-enabled "true"
;; By default Yetibot uses the ! prefix to match commands.
;; You can use this configuration to customize the prefix used by Yetibot
:yetibot-command-prefix ","
;; Whether or not embedded commands should be globally available (enabled by
;; default)
:yetibot-command-embedded-enabled "false"
;; Whether to enable having a fallback command. Default is true.
:yetibot-command-fallback-enabled "true"
;; Override the default fallback help text. Default is empty.
:yetibot-command-fallback-help-text "Welcome to Yetibot 👋"
;; the default command to fall back to if no other commands match
:yetibot-default-command "giphy"
;; Whitelists and blackists: these can be used to enable/disable specific
;; commands. Only one of these must be specified. If both are specified, it
;; is considered an error and will crash Yetibot on startup. By default there
;; is no whitelist or blacklist.
;;
;; Whitelist: when whitelist is specified, all commands are disabled except
;; those present in the `whitelist` collection. Example:
;;
;; :yetibot-command-whitelist-0 "echo"
;; :yetibot-command-whitelist-1 "list"
;;
;; Blacklist: when blacklist is specified, all commands are enabled except
;; those present in the `blacklist` collection. Example:
;;
;; :yetibot-command-blacklist-0 "echo"
;; :yetibot-command-blacklist-1 "list"
;; Yetibot needs a Postgres instance to run against.
:yetibot-db-url "postgresql://localhost:5432/yetibot"
:yetibot-db-table-prefix "yetibot_"
;; Storing of channel history in the history table is on by default
:yetibot-history-disabled "false"
;; ADAPTERS
;; Yetibot can listen on multiple instances of each adapters type. Current
;; adapter types are Slack and IRC.
;;
;; Each config map must have:
;; - a unique key (i.e. uuid)"
;; - a :type key with value "slack" or "irc"
;;
;; Example configuring 3 adapters: 2 Slacks and 1 IRC:
:yetibot-adapters-myteam-type "slack"
:yetibot-adapters-myteam-token "xoxb-111111111111111111111111111111111111"
:yetibot-adapters-k8s-type "slack"
:yetibot-adapters-k8s-token "xoxb-k8s-slack-9999999999999999"
:yetibot-adapters-freenode-type "irc"
:yetibot-adapters-freenode-host "chat.freenode.net"
:yetibot-adapters-freenode-port "7070"
:yetibot-adapters-freenode-ssl "true"
:yetibot-adapters-freenode-username "yetibot"
:yetibot-adapters-mydiscord-type "discord"
:yetibot-adapters-mydiscord-token "mt111111111111111111111"
:yetibot-adapters-mymattermost-type "mattermost"
:yetibot-adapters-mymattermost-host "yetibot-mattermost.herokuapp.com"
:yetibot-adapters-mymattermost-token "h1111111111111111111111111"
:yetibot-adapters-mymattermost-secure "true" ;; true by default
;; Listens on port 3000 but this may be different for you if you (e.g. if you
;; use a load balancer or map ports in Docker).
:yetibot-url "http://localhost:3000"
;;
;; WORK
;;
:yetibot-pagerduty-token ""
:yetibot-github-token ""
:yetibot-github-org-0 ""
:yetibot-github-org-1 ""
;; :endpoint is optional: only specify if using GitHub Enterprise.
:yetibot-github-endpoint ""
;; `jira`
:yetibot-jira-domain ""
:yetibot-jira-user ""
:yetibot-jira-password ""
:yetibot-jira-projects-0-key "FOO"
:yetibot-jira-projects-0-default-version-id "42"
:yetibot-jira-default-issue-type-id "3"
:yetibot-jira-subtask-issue-type-id "27"
:yetibot-jira-default-project-key "Optional"
:yetibot-jira-cloud "true"
;; s3
:yetibot-s3-access-key ""
:yetibot-s3-secret-key ""
;; send and receive emails with `mail`
:yetibot-mail-host ""
:yetibot-mail-user ""
:yetibot-mail-pass ""
:yetibot-mail-from ""
:yetibot-mail-bcc ""
;;
;; FUN
;;
;; `giphy`
:yetibot-giphy-key ""
;; `meme`
:yetibot-imgflip-username ""
:yetibot-imgflip-password ""
;;
;; INFOs
;;
;; Alpha Vantage (stock data)
:yetibot-alphavantage-key ""
;; `google`
:yetibot-google-api-key ""
:yetibot-google-custom-search-engine-id ""
:yetibot-google-options-safe "high"
;; `ebay`
:yetibot-ebay-appid ""
;; `twitter`: stream tweets from followers and followed topics directly into
;; chat, and post tweets
:yetibot-twitter-consumer-key ""
:yetibot-twitter-consumer-secret ""
:yetibot-twitter-token ""
:yetibot-twitter-secret ""
;; ISO 639-1 code: http://en.wikipedia.org/wiki/List-of-ISO-639-1-codes
:yetibot-twitter-search-lang "en"
;; `jen` - Jenkins
;; Jenkins instances config are mutable, and are therefore not defined in
;; this config. Instead, add them at runtime. See `!help jen` for more info.
;; How long to cache Jenkins jobs from each instance before refreshing
:yetibot-jenkins-cache-ttl "3600000"
;; Default job across all instances, used by `!jen build`
:yetibot-jenkins-default-job ""
:yetibot-jenkins-instances-0-name "yetibot"
:yetibot-jenkins-instances-0-uri "http://yetibot/"
:yetibot-jenkins-instances-0-default-job "default-job-name"
;; If your Jenkins doesn't require auth, set user and api-key to some
;; non-blank value in order to pass the configuration check.
:yetibot-jenkins-instances-0-user "jenkins-user"
:yetibot-jenkins-instances-0-apikey "abc"
;; additional instances can be configured by bumping the index
:yetibot-jenkins-instances-1-name "yetibot.core"
:yetibot-jenkins-instances-1-uri "http://yetibot.core/"
;; Admin section controls which users have admin privileges and which
;; commands are locked down to admin use only.
;;
;; Set of Strings: Slack IDs or IRC users (which have ~ prefixes) of users
;; who can use the yetibot `eval` command.
:yetibot-admin-users-0 "U123123"
:yetibot-admin-users-1 "~awesomeperson"
;; The set of commands to restrict to admins only (note `eval` is *always*
;; admin only regardless of config):
:yetibot-admin-commands-0 "observer"
:yetibot-admin-commands-1 "obs"
;; Configure GitHub if you have your own fork of the yetibot repo. This will
;; allow opening feature requests on your fork.
:yetibot-features-github-token ""
:yetibot-features-github-user ""
;; SSH servers are specified in groups so that multiple servers which share
;; usernames and keys don't need to each specify duplicate config. Fill in
;; your own key-names below instead of `:server-a-host`. This is the short
;; name that the ssh command will refer to, e.g.: `ssh server-a-host ls -al`.
:yetibot-ssh-groups-0-key "path-to-key"
:yetibot-ssh-groups-0-user ""
:yetibot-ssh-groups-0-servers-0-name ""
:yetibot-ssh-groups-0-servers-0-host ""
:yetibot-ssh-groups-0-servers-1-name ""
:yetibot-ssh-groups-0-servers-1-host ""
;; `weather`
:yetibot-weather-weatherbitio-key ""
:yetibot-weather-weatherbitio-key-default-zip ""
;; `wolfram`
:yetibot-wolfram-appid ""
;; `wordnik` dictionary
:yetibot-wordnik-key ""
;; nrepl configuration
:yetibot-nrepl-port ""
;; `karma`
:yetibot-karma-emoji-positive ":taco:"
:yetibot-karma-emoji-negative ":poop:"
}}}