Merge "Produce html logs for our IRC logs"

This commit is contained in:
Jenkins 2015-05-09 14:54:28 +00:00 committed by Gerrit Code Review
commit 1190b252c2
2 changed files with 14 additions and 0 deletions

View File

@ -40,6 +40,11 @@ class meetbot {
ensure => present,
}
package { 'irclog2html':
ensure => 'present',
provider => pip,
}
file { '/var/lib/meetbot':
ensure => directory,
owner => 'meetbot',

View File

@ -93,6 +93,15 @@ define meetbot::site(
require => File["${varlib}/ircmeeting"],
}
cron { 'irclog2html':
user => 'meetbot',
weekday => '*',
hour => '*',
minute => '*/15',
command => "find ${varlib}/logs/ChannelLogger/${network} -mindepth 1 -maxdepth 1 -type d | xargs -n1 logs2html",
environment => 'PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin',
}
# we set this file as root ownership because meetbot overwrites it on shutdown
# this means when puppet changes it and restarts meetbot the file is reset
file { "/etc/init/${name}-meetbot.conf":