From e5545cbaef7d14253e69667d6a055923a303d68b Mon Sep 17 00:00:00 2001 From: Morgan Fainberg Date: Wed, 28 Jan 2015 11:01:28 -0800 Subject: [PATCH] Add Bugtracker plugin to meetbot supybot Add the Bugtracker plugin to the supybot used for meetbot (OpenStack). This will restore the response of bug information to the channel when a user references a bug in a message (e.g. 'bug XXXXXX'). Change-Id: I3ee3f1fa516bf1607ba6e79c6f911190a49b0161 --- manifests/init.pp | 22 +++++++++ templates/supybot.conf.erb | 92 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 114 insertions(+) diff --git a/manifests/init.pp b/manifests/init.pp index ddaceb7..7ea8e60 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -7,6 +7,15 @@ class meetbot { source => 'https://git.openstack.org/openstack-infra/meetbot', } + vcsrepo { '/opt/ubuntu_supybot_plugins': + ensure => latest, + provider => bzr, + require => [ + Package['bzr'], + ], + source => 'lp:ubuntu-bots' + } + user { 'meetbot': gid => 'meetbot', home => '/var/lib/meetbot', @@ -21,6 +30,9 @@ class meetbot { $packages = [ 'supybot', + 'bzr', + 'python-launchpadlib', + 'python-soappy', 'python-twisted' ] @@ -43,6 +55,16 @@ class meetbot { ], source => '/opt/meetbot/MeetBot', } + + file { '/usr/share/pyshared/supybot/plugins/Bugtracker': + ensure => directory, + recurse => true, + require => [ + Package['supybot'], + Vcsrepo['/opt/ubuntu_supybot_plugins'] + ], + source => '/opt/supybot/plugins/Bugtracker', + } } # vim:sw=2:ts=2:expandtab:textwidth=79 diff --git a/templates/supybot.conf.erb b/templates/supybot.conf.erb index 3f32674..42c6935 100644 --- a/templates/supybot.conf.erb +++ b/templates/supybot.conf.erb @@ -846,6 +846,98 @@ supybot.plugins.MeetBot.public: True ### supybot.plugins.MeetBot.enableSupybotBasedConfig: False +### +# Determines whether this plugin is loaded by default. +### +supybot.plugins.Bugtracker: True + +### +# Determines whether this plugin is publicly visible. +# +# Default value: True +### +supybot.plugins.Bugtracker.public: True + +### +# Determines whether the bug snarfer will be enabled, such that any +# Bugtracker URLs and bug ### seen in the channel will have their +# information reported into the channel. +# +# Default value: False +### +supybot.plugins.Bugtracker.bugSnarfer: True + +### +# Determines whether the CVE snarfer will be enabled, such that any CVE +# URLs and CVE-????-???? seen in the channel will have their information +# reported into the channel. +# +# Default value: False +### +supybot.plugins.Bugtracker.cveSnarfer: False + +### +# Determines whether the OOPS snarfer will be enabled, such that any +# OOPS ### seen in the channel will have their information reported into +# the channel. +# +# Default value: False +### +supybot.plugins.Bugtracker.oopsSnarfer: False + +### +# Determines the phrase to use when notifying the user that there is no +# information about that bugtracker site. +# +# Default value: I don't have a bugtracker %s. +### +supybot.plugins.Bugtracker.replyNoBugtracker: I don't have a bugtracker %s. + +### +# Determines the bugtracker to query when the snarf command is triggered +# +# Default value: launchpad +### +supybot.plugins.Bugtracker.snarfTarget: launchpad + +### +# Determines what bugtrackers will be added to the bot when it starts. +# +# Default value: +### +supybot.plugins.Bugtracker.bugtrackers: launchpad +supybot.plugins.Bugtracker.bugtrackers.launchpad.url: https://launchpad.net +supybot.plugins.Bugtracker.bugtrackers.launchpad.description: Launchpad +supybot.plugins.Bugtracker.bugtrackers.launchpad.trackertype: launchpad + +### +# Whether to send a message when a bug could not be found +# +# Default value: False +### +supybot.plugins.Bugtracker.replyWhenNotFound: False + +### +# Number of seconds to wait between repeated bug calls +# +# Default value: 60 +### +supybot.plugins.Bugtracker.repeatdelay: 60 + +### +# Whether to show the assignee in bug reports +# +# Default value: False +### +supybot.plugins.Bugtracker.showassignee: True + +### +# Show optional extneded bug information, specific to trackers +# +# Default value: False +### +supybot.plugins.Bugtracker.extended: False + ### # Determines whether this plugin is loaded by default. ###