Monty Taylor 1adb9b728f Produce html logs for our IRC logs
There is a tool, irclog2html, that knows how to take directories of irc
logs and turn them in to formatted html with per-line links. Since we do
that for build logs, and the logs associated with meetings, it seems
only sane that we do it for channel logs.

The tool groks mtime, so it will skip previously produced logs, and will
overwrite current streaming logs each time it's run. We'll need to run
the command one time by hand first, because the first run might take a
bit to eat through our history.

Change-Id: Ieed2c80d945ee35b29887d672cd9ebbd9ece2188
2015-05-08 19:01:15 -04:00

76 lines
1.4 KiB
Puppet

class meetbot {
include apache
vcsrepo { '/opt/meetbot':
ensure => latest,
provider => git,
source => 'https://git.openstack.org/openstack-infra/meetbot',
}
vcsrepo { '/opt/ubuntu_supybot_plugins':
ensure => present,
provider => bzr,
require => [
Package['bzr'],
],
source => 'lp:ubuntu-bots'
}
user { 'meetbot':
gid => 'meetbot',
home => '/var/lib/meetbot',
shell => '/sbin/nologin',
system => true,
require => Group['meetbot'],
}
group { 'meetbot':
ensure => present,
}
$packages = [
'supybot',
'bzr',
'python-launchpadlib',
'python-soappy',
'python-twisted'
]
package { $packages:
ensure => present,
}
package { 'irclog2html':
ensure => 'present',
provider => pip,
}
file { '/var/lib/meetbot':
ensure => directory,
owner => 'meetbot',
require => User['meetbot'],
}
file { '/usr/share/pyshared/supybot/plugins/MeetBot':
ensure => directory,
recurse => true,
require => [
Package['supybot'],
Vcsrepo['/opt/meetbot']
],
source => '/opt/meetbot/MeetBot',
}
file { '/usr/share/pyshared/supybot/plugins/Bugtracker':
ensure => directory,
recurse => true,
require => [
Package['supybot'],
Vcsrepo['/opt/ubuntu_supybot_plugins']
],
source => '/opt/ubuntu_supybot_plugins/Bugtracker',
}
}
# vim:sw=2:ts=2:expandtab:textwidth=79