Set the success/thanks page url for status bot

Avoid having these hardcoded in statusbot itself.

Depends-On: I0d36dbff893422e188b9e992f8e9bb3c1431419f
Change-Id: I08cf018848c088217831b725106b7ac570d77c06
This commit is contained in:
Mike Perez 2018-01-04 08:13:59 -08:00
parent ccd3146c72
commit da91542648
2 changed files with 7 additions and 3 deletions

View File

@ -339,10 +339,10 @@ node /^eavesdrop\d*\.openstack\.org$/ {
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',
# https://wiki.openstack.org/wiki/Thanks
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'),

View File

@ -12,7 +12,9 @@ class openstack_project::eavesdrop (
$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 = '',
@ -58,7 +60,9 @@ class openstack_project::eavesdrop (
wiki_url => $statusbot_wiki_url,
wiki_pageid => $statusbot_wiki_pageid,
wiki_successpageid => $statusbot_wiki_successpageid,
wiki_thankspageid => $statusbot_wiki_thankspageid,
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,