
Change-Id: Ia0f3acd50aab07cc83d13cd12c8f7fc67f1c697d Reviewed-on: https://review.openstack.org/10832 Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
51 lines
989 B
Puppet
51 lines
989 B
Puppet
class meetbot {
|
|
|
|
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', 'nginx', 'python-twisted']:
|
|
ensure => present
|
|
}
|
|
|
|
service { "nginx":
|
|
ensure => running,
|
|
hasrestart => true,
|
|
}
|
|
|
|
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']
|
|
}
|
|
|
|
}
|