system-config/playbooks/roles/statusbot/templates/statusbot.config.j2
Ian Wienand 23fac31c92 Run statusbot from eavesdrop01.opendev.org
This installs statusbot on eavesdrop01.opendev.org.

Otherwise it's just config translation and bringing up the daemon.

Change-Id: I246b2723372594e65bcd1ba90215d6831d4c0c72
2021-06-11 07:52:51 +10:00

47 lines
1.2 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 %}