Add Twitter account details to our statusbot

Change-Id: I62c767eeab472ac79bf18ba0177ed80b08dbf8fa
Depends-on: Ia861189ea10d0056afb43fe6a6fd1e51d4ffb4bf
This commit is contained in:
Elizabeth K. Joseph 2016-09-09 14:43:51 -07:00
parent b20dabe99e
commit fa78401181
2 changed files with 28 additions and 12 deletions

View File

@ -332,7 +332,12 @@ node 'eavesdrop.openstack.org' {
# https://wiki.openstack.org/wiki/Successes # https://wiki.openstack.org/wiki/Successes
statusbot_wiki_successpageid => '7717', statusbot_wiki_successpageid => '7717',
statusbot_irclogs_url => 'http://eavesdrop.openstack.org/irclogs/%(chan)s/%(chan)s.%(date)s.log.html', statusbot_irclogs_url => 'http://eavesdrop.openstack.org/irclogs/%(chan)s/%(chan)s.%(date)s.log.html',
accessbot_nick => hiera('accessbot_nick', 'username'), 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'),
statusbot_accessbot_nick => hiera('accessbot_nick', 'username'),
accessbot_password => hiera('accessbot_nick_password'), accessbot_password => hiera('accessbot_nick_password'),
meetbot_channels => hiera('meetbot_channels', ['openstack-infra']), meetbot_channels => hiera('meetbot_channels', ['openstack-infra']),
} }

View File

@ -13,6 +13,12 @@ class openstack_project::eavesdrop (
$statusbot_wiki_pageid = '', $statusbot_wiki_pageid = '',
$statusbot_wiki_successpageid = '', $statusbot_wiki_successpageid = '',
$statusbot_irclogs_url = '', $statusbot_irclogs_url = '',
$statusbot_twitter = undef,
$statusbot_twitter_key = '',
$statusbot_twitter_secret = '',
$statusbot_twitter_token_key = '',
$statusbot_twitter_token_secret = '',
$statusbot_accessbot_nick = '',
$accessbot_nick = '', $accessbot_nick = '',
$accessbot_password = '', $accessbot_password = '',
$project_config_repo = '', $project_config_repo = '',
@ -39,17 +45,22 @@ class openstack_project::eavesdrop (
} }
class { 'statusbot': class { 'statusbot':
nick => $statusbot_nick, nick => $statusbot_nick,
password => $statusbot_password, password => $statusbot_password,
server => $statusbot_server, server => $statusbot_server,
channels => $statusbot_channels, channels => $statusbot_channels,
auth_nicks => $statusbot_auth_nicks, auth_nicks => $statusbot_auth_nicks,
wiki_user => $statusbot_wiki_user, wiki_user => $statusbot_wiki_user,
wiki_password => $statusbot_wiki_password, wiki_password => $statusbot_wiki_password,
wiki_url => $statusbot_wiki_url, wiki_url => $statusbot_wiki_url,
wiki_pageid => $statusbot_wiki_pageid, wiki_pageid => $statusbot_wiki_pageid,
wiki_successpageid => $statusbot_wiki_successpageid, wiki_successpageid => $statusbot_wiki_successpageid,
irclogs_url => $statusbot_irclogs_url, 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': file { '/srv/meetbot-openstack/alert':