a6c709c86f
Change-Id: Ieeb8469126d64df75e7fa0fff67618daa6990674 Reviewed-on: https://review.openstack.org/11246 Approved: Monty Taylor <mordred@inaugust.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
48 lines
925 B
Puppet
48 lines
925 B
Puppet
class meetbot {
|
|
|
|
include apache
|
|
|
|
vcsrepo { "/opt/meetbot":
|
|
ensure => latest,
|
|
provider => git,
|
|
source => "https://github.com/openstack-ci/meetbot.git",
|
|
}
|
|
|
|
user { "meetbot":
|
|
shell => "/sbin/nologin",
|
|
home => "/var/lib/meetbot",
|
|
system => true,
|
|
gid => "meetbot",
|
|
require => Group["meetbot"]
|
|
}
|
|
|
|
group { "meetbot":
|
|
ensure => present
|
|
}
|
|
|
|
package { ['supybot', 'python-twisted']:
|
|
ensure => present
|
|
}
|
|
|
|
file { "/var/lib/meetbot":
|
|
ensure => directory,
|
|
owner => 'meetbot',
|
|
require => User['meetbot']
|
|
}
|
|
|
|
file { "/usr/share/pyshared/supybot/plugins/MeetBot":
|
|
ensure => directory,
|
|
recurse => true,
|
|
source => "/opt/meetbot/MeetBot",
|
|
require => [Package["supybot"],
|
|
Vcsrepo["/opt/meetbot"]]
|
|
}
|
|
|
|
file { "/etc/nginx/sites-enabled/default":
|
|
ensure => absent,
|
|
require => Package['nginx'],
|
|
notify => Service['nginx']
|
|
}
|
|
|
|
}
|