fcda0d907f
* modules/meetbot/manifests/init.pp: Remove a stray ensure absent block for nginx configuration which tries to notify a nonexistent service. Change-Id: I4a086ea60afb777b72971b81ece3d53b99b29ff2 Reviewed-on: https://review.openstack.org/29863 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: James E. Blair <corvus@inaugust.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Tested-by: Jenkins
49 lines
893 B
Puppet
49 lines
893 B
Puppet
class meetbot {
|
|
include apache
|
|
|
|
vcsrepo { '/opt/meetbot':
|
|
ensure => latest,
|
|
provider => git,
|
|
source => 'https://github.com/openstack-infra/meetbot.git',
|
|
}
|
|
|
|
user { 'meetbot':
|
|
gid => 'meetbot',
|
|
home => '/var/lib/meetbot',
|
|
shell => '/sbin/nologin',
|
|
system => true,
|
|
require => Group['meetbot'],
|
|
}
|
|
|
|
group { 'meetbot':
|
|
ensure => present,
|
|
}
|
|
|
|
$packages = [
|
|
'supybot',
|
|
'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',
|
|
}
|
|
}
|
|
|
|
# vim:sw=2:ts=2:expandtab:textwidth=79
|