Browse Source
Cleanup documenation, puppet references and the eavesdrop_opendev group. Change-Id: I67096d8eced0be54db9b1ee277b24602d8c20f00changes/14/795014/13
8 changed files with 27 additions and 205 deletions
@ -1,30 +0,0 @@
|
||||
# Node-OS: xenial |
||||
node /^eavesdrop\d*\.open.*\.org$/ { |
||||
$group = "eavesdrop" |
||||
class { 'openstack_project::eavesdrop': |
||||
nickpass => hiera('openstack_meetbot_password'), |
||||
statusbot_nick => 'opendevstatus', |
||||
statusbot_password => hiera('statusbot_nick_password'), |
||||
statusbot_server => 'irc.oftc.net', |
||||
statusbot_channels => hiera_array('statusbot_channels', ['openstack_infra']), |
||||
statusbot_auth_nicks => hiera_array('statusbot_auth_nicks'), |
||||
statusbot_wiki_user => hiera('statusbot_wiki_username', 'username'), |
||||
statusbot_wiki_password => hiera('statusbot_wiki_password'), |
||||
statusbot_wiki_url => 'https://wiki.openstack.org/w/api.php', |
||||
# https://wiki.openstack.org/wiki/Infrastructure_Status |
||||
statusbot_wiki_pageid => '1781', |
||||
statusbot_wiki_successpageid => '7717', |
||||
statusbot_wiki_successpageurl => 'https://wiki.openstack.org/wiki/Successes', |
||||
statusbot_wiki_thankspageid => '37700', |
||||
statusbot_wiki_thankspageurl => 'https://wiki.openstack.org/wiki/Thanks', |
||||
statusbot_irclogs_url => 'http://eavesdrop.openstack.org/irclogs/%(chan)s/%(chan)s.%(date)s.log.html', |
||||
statusbot_twitter => true, |
||||
statusbot_twitter_key => hiera('statusbot_twitter_key'), |
||||
statusbot_twitter_secret => hiera('statusbot_twitter_secret'), |
||||
statusbot_twitter_token_key => hiera('statusbot_twitter_token_key'), |
||||
statusbot_twitter_token_secret => hiera('statusbot_twitter_token_secret'), |
||||
meetbot_channels => hiera('meetbot_channels', ['openstack-infra']), |
||||
ptgbot_nick => hiera('ptgbot_nick', 'username'), |
||||
ptgbot_password => hiera('ptgbot_password'), |
||||
} |
||||
} |
@ -1,121 +0,0 @@
|
||||
# Eavesdrop server |
||||
|
||||
class openstack_project::eavesdrop ( |
||||
$nickpass = '', |
||||
$statusbot_nick = '', |
||||
$statusbot_password = '', |
||||
$statusbot_server = '', |
||||
$statusbot_channels = '', |
||||
$statusbot_auth_nicks = '', |
||||
$statusbot_wiki_user = '', |
||||
$statusbot_wiki_password = '', |
||||
$statusbot_wiki_url = '', |
||||
$statusbot_wiki_pageid = '', |
||||
$statusbot_wiki_successpageid = '', |
||||
$statusbot_wiki_successpageurl = '', |
||||
$statusbot_wiki_thankspageid = '', |
||||
$statusbot_wiki_thankspageurl = '', |
||||
$statusbot_irclogs_url = '', |
||||
$statusbot_twitter = undef, |
||||
$statusbot_twitter_key = '', |
||||
$statusbot_twitter_secret = '', |
||||
$statusbot_twitter_token_key = '', |
||||
$statusbot_twitter_token_secret = '', |
||||
$meetbot_channels = [], |
||||
$ptgbot_nick = '', |
||||
$ptgbot_password = '', |
||||
) { |
||||
include ::httpd |
||||
include meetbot |
||||
|
||||
$vhost_extra = ' |
||||
<Location /alert> |
||||
Header set Access-Control-Allow-Origin "*" |
||||
</Location> |
||||
' |
||||
|
||||
meetbot::site { 'openstack': |
||||
nick => 'opendevmeet', |
||||
nickpass => $nickpass, |
||||
network => 'OFTC', |
||||
server => 'irc4.oftc.net:6697', |
||||
use_ssl => 'True', |
||||
vhost_extra => $vhost_extra, |
||||
vhost_name => 'eavesdrop.openstack.org', |
||||
manage_index => false, |
||||
channels => $meetbot_channels, |
||||
} |
||||
|
||||
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, |
||||
wiki_successpageid => $statusbot_wiki_successpageid, |
||||
wiki_successpageurl => $statusbot_wiki_successpageurl, |
||||
wiki_thankspageid => $statusbot_wiki_thankspageid, |
||||
wiki_thankspageurl => $statusbot_wiki_thankspageurl, |
||||
irclogs_url => $statusbot_irclogs_url, |
||||
twitter => $statusbot_twitter, |
||||
twitter_key => $statusbot_twitter_key, |
||||
twitter_secret => $statusbot_twitter_secret, |
||||
twitter_token_key => $statusbot_twitter_token_key, |
||||
twitter_token_secret => $statusbot_twitter_token_secret, |
||||
} |
||||
|
||||
file { '/srv/meetbot-openstack/alert': |
||||
ensure => link, |
||||
target => '/var/lib/statusbot/www', |
||||
require => Class['statusbot'], |
||||
} |
||||
|
||||
if ! defined(Httpd::Mod['headers']) { |
||||
httpd::mod { 'headers': |
||||
ensure => present, |
||||
} |
||||
} |
||||
|
||||
file { '/srv/yaml2ical': |
||||
ensure => directory, |
||||
owner => 'zuul', |
||||
group => 'zuul', |
||||
} |
||||
|
||||
file { '/srv/yaml2ical/calendars': |
||||
ensure => directory, |
||||
owner => 'zuul', |
||||
group => 'zuul', |
||||
require => File['/srv/yaml2ical'], |
||||
} |
||||
|
||||
file { '/srv/meetbot-openstack/index.html': |
||||
ensure => link, |
||||
target => '/srv/yaml2ical/index.html', |
||||
require => File['/srv/yaml2ical'], |
||||
} |
||||
|
||||
file { '/srv/meetbot-openstack/irc-meetings.ical': |
||||
ensure => link, |
||||
target => '/srv/yaml2ical/irc-meetings.ical', |
||||
require => File['/srv/yaml2ical'], |
||||
} |
||||
|
||||
file { '/srv/meetbot-openstack/calendars/': |
||||
ensure => link, |
||||
target => '/srv/yaml2ical/calendars/', |
||||
require => File['/srv/yaml2ical'], |
||||
} |
||||
|
||||
class { 'ptgbot': |
||||
nick => $ptgbot_nick, |
||||
password => $ptgbot_password, |
||||
channel => '#openinfra-events', |
||||
vhost_name => 'ptg.openstack.org', |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue