
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
71 lines
1.4 KiB
Puppet
71 lines
1.4 KiB
Puppet
class meetbot {
|
|
include apache
|
|
|
|
vcsrepo { '/opt/meetbot':
|
|
ensure => latest,
|
|
provider => git,
|
|
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',
|
|
shell => '/sbin/nologin',
|
|
system => true,
|
|
require => Group['meetbot'],
|
|
}
|
|
|
|
group { 'meetbot':
|
|
ensure => present,
|
|
}
|
|
|
|
$packages = [
|
|
'supybot',
|
|
'bzr',
|
|
'python-launchpadlib',
|
|
'python-soappy',
|
|
'python-twisted'
|
|
]
|
|
|
|
package { $packages:
|
|
ensure => present,
|
|
}
|
|
|
|
file { '/var/lib/meetbot':
|
|
ensure => directory,
|
|
owner => 'meetbot',
|
|
require => User['meetbot'],
|
|
}
|
|
|
|
file { '/usr/share/pyshared/supybot/plugins/MeetBot':
|
|
ensure => directory,
|
|
recurse => true,
|
|
require => [
|
|
Package['supybot'],
|
|
Vcsrepo['/opt/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
|