da3e3b72e9
This started as a puppet-lint clean up and ended up more a refactoring of some of the logic. Change-Id: I5315571fbef8ff4ebe2ae77d2d2b19a6fcd5798d Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com> Reviewed-on: https://review.openstack.org/14113 Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: Monty Taylor <mordred@inaugust.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
55 lines
1.0 KiB
Puppet
55 lines
1.0 KiB
Puppet
class meetbot {
|
|
include apache
|
|
|
|
vcsrepo { '/opt/meetbot':
|
|
ensure => latest,
|
|
provider => git,
|
|
source => 'https://github.com/openstack-ci/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',
|
|
}
|
|
|
|
file { '/etc/nginx/sites-enabled/default':
|
|
ensure => absent,
|
|
notify => Service['nginx'],
|
|
require => Package['nginx'],
|
|
}
|
|
}
|
|
|
|
# vim:sw=2:ts=2:expandtab:textwidth=79
|