Merge "Produce html logs for our IRC logs"
This commit is contained in:
commit
1190b252c2
@ -40,6 +40,11 @@ class meetbot {
|
||||
ensure => present,
|
||||
}
|
||||
|
||||
package { 'irclog2html':
|
||||
ensure => 'present',
|
||||
provider => pip,
|
||||
}
|
||||
|
||||
file { '/var/lib/meetbot':
|
||||
ensure => directory,
|
||||
owner => 'meetbot',
|
||||
|
@ -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":
|
||||
|
Loading…
x
Reference in New Issue
Block a user