system-config/modules/openstack_project/manifests/eavesdrop.pp
Thierry Carrez 52aaf26ea2 Add logging to #openstack-relmgr-office
People have been asking that 1-to-1 meetings between release managers
and PTLs be logged and easily filtered, so a specific channel was set
up to that effect (#openstack-relmgr-office). This change requests
that it is permanently logged using eavesdrop.

openstackinfra was added to that channel with founder rights.

Change-Id: Ie7d37b5a296c6ac691a4135f484c6f6b9e40e3c9
2014-01-02 15:33:32 +01:00

81 lines
1.9 KiB
Puppet

# Eavesdrop server
class openstack_project::eavesdrop (
$nickpass = '',
$sysadmins = [],
$statusbot_nick = '',
$statusbot_password = '',
$statusbot_server = '',
$statusbot_channels = '',
$statusbot_auth_nicks = '',
$statusbot_wiki_user = '',
$statusbot_wiki_password = '',
$statusbot_wiki_url = '',
$statusbot_wiki_pageid = '',
) {
class { 'openstack_project::server':
iptables_public_tcp_ports => [80],
sysadmins => $sysadmins
}
include apache
include meetbot
$vhost_extra = '
<Location /alert>
Header set Access-Control-Allow-Origin "*"
</Location>
'
meetbot::site { 'openstack':
nick => 'openstack',
nickpass => $nickpass,
network => 'FreeNode',
server => 'chat.freenode.net:7000',
use_ssl => 'True',
vhost_extra => $vhost_extra,
channels => [
'#heat',
'#murano',
'#openstack',
'#openstack-ceilometer',
'#openstack-climate',
'#openstack-dev',
'#openstack-dns',
'#openstack-infra',
'#openstack-ironic',
'#openstack-marconi',
'#openstack-meeting',
'#openstack-meeting-alt',
'#openstack-neutron',
'#openstack-qa',
'#openstack-relmgr-office',
'#openstack-trove',
'#savanna',
'#storyboard',
'#tripleo',
],
}
class { 'statusbot':
nick => $statusbot_nick,
password => $statusbot_password,
server => $statusbot_server,
channels => $statusbot_channels,
auth_nicks => $statusbot_auth_nicks,
wiki_user => $statusbot_wiki_user,
wiki_password => $statusbot_wiki_password,
wiki_url => $statusbot_wiki_url,
wiki_pageid => $statusbot_wiki_pageid,
}
file { '/srv/meetbot-openstack/alert':
ensure => link,
target => '/var/lib/statusbot/www',
require => Class['statusbot'],
}
a2mod { 'headers':
ensure => present,
}
}