limnoria: production fixes

Don't flush the config.  We don't want limnoria to overwrite our
config, and we dont' configure it manually via interaction.

Make sure the Services plugin is loaded to identify with nickserv.

Set the logs2html job to 15 minutes, same as the old puppet setting.

Set the logging level to INFO to avoid verbose logging.

Set the flush option to True so logs are written immediately

Setup rotation on the logfile

Change-Id: I9b5fdf484b6e5d8c9af60708ff02d3c60e427fbd
This commit is contained in:
Ian Wienand 2021-06-11 12:01:45 +10:00
parent f80ab86043
commit b2ca63c3b7
2 changed files with 10 additions and 1 deletions
playbooks/roles/limnoria

@ -29,6 +29,12 @@
group: root
mode: 0600
- name: Rotate limnoria logfile
include_role:
name: logrotate
vars:
logrotate_file_name: /var/lib/limnoria/opendev/logs/messages.log
- name: Ensure /etc/ircbot-docker directory
file:
state: directory
@ -51,6 +57,7 @@
name: 'opendev {{ item.key }} logs2html'
state: present
user: root
minute: 15
job: >-
/usr/local/bin/docker-compose -f /etc/ircbot-docker/docker-compose.yaml exec -T ircbot
bash -c "find /var/lib/limnoria/opendev/logs/ChannelLogger/{{ item.key }}/ -mindepth 1 -maxdepth 1 -type d | xargs -n1 logs2html"

@ -543,7 +543,7 @@ supybot.log.format: %(levelname)s %(asctime)s %(name)s %(message)s
#
# Default value: INFO
###
supybot.log.level: DEBUG
supybot.log.level: INFO
###
# Determines what the bot's logging format will be. The relevant
@ -1726,5 +1726,7 @@ supybot.plugins.MeetBot.public: True
supybot.plugins.MeetBot.enableSupybotBasedConfig: False
# NickServ
supybot.plugins.Services: True
supybot.plugins.Services.NickServ: NickServ
supybot.plugins.Services.NickServ.nicks: {{ limnoria_default_nick }}
supybot.plugins.Services.NickServ.password.{{ limnoria_default_nick }}: {{ limnoria_default_nickserv_password }}