diff --git a/doc/source/irc.rst b/doc/source/irc.rst index 41b583784e..ef7f4939b8 100644 --- a/doc/source/irc.rst +++ b/doc/source/irc.rst @@ -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 -`_. It -supports the following public message commands when issued by +`_. + +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: diff --git a/manifests/site.pp b/manifests/site.pp index be2c61b130..76c91bbd40 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -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'), } diff --git a/modules/openstack_project/manifests/eavesdrop.pp b/modules/openstack_project/manifests/eavesdrop.pp index 773df8486a..acc864af20 100644 --- a/modules/openstack_project/manifests/eavesdrop.pp +++ b/modules/openstack_project/manifests/eavesdrop.pp @@ -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':