Add matrix config support to statusbot deployment
The statusbot bot has grown support for talking to matrix in addition to IRC. Add support in our configuration management to configure the necessary settings to have the bot connect to matrix. Note that reviewers should double check that private vars are updated before approving this change. Change-Id: I20b28a1816821b6a6cc34c677b941ef32e08faa0
This commit is contained in:
@@ -195,5 +195,11 @@ statusbot_auth_nicks:
|
||||
- ianw
|
||||
- frickler
|
||||
- tonyb
|
||||
statusbot_matrix_rooms:
|
||||
- '#opendev:opendev.org'
|
||||
- '#zuul:opendev.org'
|
||||
statusbot_matrix_auth_users:
|
||||
- '@clarkb:matrix.org'
|
||||
- '@jim:acmegating.com'
|
||||
gerritbot_gid: 11000
|
||||
gerritbot_uid: 11000
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
- /var/log/statusbot
|
||||
- /var/lib/statusbot
|
||||
- /var/lib/statusbot/www
|
||||
- /var/lib/statusbot/data
|
||||
|
||||
- name: Put statusbot config in place
|
||||
template:
|
||||
|
||||
@@ -10,6 +10,14 @@ nicks={{ statusbot_auth_nicks | join(',') }}
|
||||
lockfile=/var/run/statusbot/statusbot.pid
|
||||
log_config=/etc/statusbot/logging.config
|
||||
|
||||
[matrixbot]
|
||||
user_id={{ statusbot_matrix_user }}
|
||||
password={{ statusbot_matrix_password }}
|
||||
homeserver={{ statusbot_matrix_homeserver }}
|
||||
data_dir=/var/lib/statusbot/data
|
||||
rooms={{ statusbot_matrix_rooms | join(',') }}
|
||||
users={{ statusbot_matrix_auth_users | join(',') }}
|
||||
|
||||
[wiki]
|
||||
username={{ statusbot_wiki_user }}
|
||||
password={{ statusbot_wiki_password }}
|
||||
|
||||
@@ -60,3 +60,10 @@ limnoria_oftc_channels:
|
||||
ptgbot_channels:
|
||||
- '#opendev-sandbox'
|
||||
matrix_logs_password: password
|
||||
statusbot_matrix_user: '@status_{{ 100 | random }}'
|
||||
statusbot_matrix_homeserver: 'https://opendev.ems.host'
|
||||
statusbot_matrix_password: password
|
||||
statusbot_matrix_auth_users:
|
||||
- '@testonly:opendev.org'
|
||||
statusbot_matrix_rooms:
|
||||
- '#test:opendev.org'
|
||||
|
||||
Reference in New Issue
Block a user