system-config/playbooks/roles/statusbot/templates/statusbot.config.j2
Ian Wienand cfdbec4b16
statusbot: add mastodon config options
The dependent change allows us to also post to mastodon.  Configure
this to point to fosstodon where we have an opendevinfra account.

Change-Id: Iafa8074a439315f3db74b6372c1c3181a159a474
Depends-On: https://review.opendev.org/c/opendev/statusbot/+/864586
2022-11-16 11:02:07 +11:00

53 lines
1.3 KiB
Django/Jinja

[ircbot]
nick={{ statusbot_nick }}
pass={{ statusbot_nick_password }}
server={{ statusbot_server }}
port=6697
channels={{ statusbot_channels | join(',') }}
nicks={{ statusbot_auth_nicks | join(',') }}
lockfile=/var/run/statusbot/statusbot.pid
log_config=/etc/statusbot/logging.config
[wiki]
username={{ statusbot_wiki_user }}
password={{ statusbot_wiki_password }}
url={{ statusbot_wiki_url }}
pageid={{ statusbot_wiki_pageid }}
{% if statusbot_wiki_successpageid %}
successpageid={{ statusbot_wiki_successpageid }}
{% endif %}
{% if statusbot_wiki_successpageurl %}
successpageurl={{ statusbot_wiki_successpageurl }}
{% endif %}
{% if statusbot_wiki_thankspageid %}
thankspageid={{ statusbot_wiki_thankspageid }}
{% endif %}
{% if statusbot_wiki_thankspageurl %}
thankspageurl={{ statusbot_wiki_thankspageurl }}
{% endif %}
{% if statusbot_irclogs_url %}
[irclogs]
url={{ statusbot_irclogs_url }}
{% endif %}
[alertfile]
dir=/var/lib/statusbot/www
{% if statusbot_twitter %}
[twitter]
consumer_key={{ statusbot_twitter_key }}
consumer_secret={{ statusbot_twitter_secret }}
access_token_key={{ statusbot_twitter_token_key }}
access_token_secret={{ statusbot_twitter_token_secret }}
{% endif %}
{% if statusbot_mastodon %}
[mastodon]
host={{ statusbot_mastodon_host }}
token={{ statusbot_mastodon_token }}
{% endif %}