Merge "Enable the #success feature in statusbot"

This commit is contained in:
Jenkins 2015-10-09 07:48:05 +00:00 committed by Gerrit Code Review
commit fc06894dcd
3 changed files with 18 additions and 2 deletions

View File

@ -174,8 +174,9 @@ Statusbot
Statusbot is used to distribute urgent information from the
Infrastructure team to OpenStack channels. It updates the
`Infrastructure Status wiki page
<https://wiki.openstack.org/wiki/Infrastructure_Status>`_. It
supports the following public message commands when issued by
<https://wiki.openstack.org/wiki/Infrastructure_Status>`_.
It supports the following public message commands when issued by
authenticated and whitelisted users from the channels the bot is
listening to, including #openstack-infra:
@ -196,6 +197,13 @@ listening to, including #openstack-infra:
Remove alert box and restore channel topics, optionally announcing
and logging an "okay" message.
It supports the following commands when issued by any IRC user from
the channels the bot is listening to:
#success [MESSAGE]
Log a message of success to the "Successes" wiki page. This is meant
as a collection mechanism for little celebration of small successes
in OpenStack development.
.. _gerritbot:

View File

@ -331,7 +331,11 @@ node 'eavesdrop.openstack.org' {
statusbot_wiki_user => hiera('statusbot_wiki_username', 'username'),
statusbot_wiki_password => hiera('statusbot_wiki_password', 'XXX'),
statusbot_wiki_url => 'https://wiki.openstack.org/w/api.php',
# https://wiki.openstack.org/wiki/Infrastructure_Status
statusbot_wiki_pageid => '1781',
# https://wiki.openstack.org/wiki/Successes
statusbot_wiki_successpageid => '7717',
statusbot_irclogs_url => 'http://eavesdrop.openstack.org/irclogs/%(chan)s/%(chan)s.%(date)s.log.html',
accessbot_nick => hiera('accessbot_nick', 'username'),
accessbot_password => hiera('accessbot_nick_password', 'XXX'),
}

View File

@ -11,6 +11,8 @@ class openstack_project::eavesdrop (
$statusbot_wiki_password = '',
$statusbot_wiki_url = '',
$statusbot_wiki_pageid = '',
$statusbot_wiki_successpageid = '',
$statusbot_irclogs_url = '',
$accessbot_nick = '',
$accessbot_password = '',
$project_config_repo = '',
@ -118,6 +120,8 @@ class openstack_project::eavesdrop (
wiki_password => $statusbot_wiki_password,
wiki_url => $statusbot_wiki_url,
wiki_pageid => $statusbot_wiki_pageid,
wiki_successpageid => $statusbot_wiki_successpageid,
irclogs_url => $statusbot_irclogs_url,
}
file { '/srv/meetbot-openstack/alert':