Add Twitter support

The statusbot project now has support for Twitter, see
Ib4bdbb335e4bc12d75d5f0ec2a1b95c8a6b2e7d5 for details.

Add support now in this module for those who wish to use it.

Change-Id: Ia861189ea10d0056afb43fe6a6fd1e51d4ffb4bf
This commit is contained in:
Elizabeth K. Joseph 2016-09-09 14:42:21 -07:00 committed by Monty Taylor
parent 4923f8ca4f
commit a6b4f78006
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
2 changed files with 13 additions and 0 deletions

View File

@ -9,9 +9,14 @@ class statusbot(
$wiki_password,
$wiki_url,
$wiki_user,
$twitter_key = undef,
$twitter_secret = undef,
$twitter_token_key = undef,
$twitter_token_secret = undef,
$channels = [],
$irclogs_url = undef,
$wiki_successpageid = undef,
$twitter = undef,
) {
user { 'statusbot':

View File

@ -32,3 +32,11 @@ url=<%= @irclogs_url %>
[alertfile]
dir=/var/lib/statusbot/www
<% if @twitter %>
[twitter]
consumer_key=<%= @twitter_key %>
consumer_secret=<%= @twitter_secret %>
access_token_key=<%= @twitter_token_key %>
access_token_secret=<%= @twitter_token_secret %>
<% end -%>