ae8714d7f1
The current drizzle-based pastebin has gotten a bit slow. Move to using remote trove db. Change-Id: I62fd164af26199fd9ed69770fac73c3e2f6a5344
48 lines
856 B
Puppet
48 lines
856 B
Puppet
# == Class: lodgeit
|
|
#
|
|
class lodgeit {
|
|
$packages = [ 'python-imaging',
|
|
'python-jinja2',
|
|
'python-pybabel',
|
|
'python-werkzeug',
|
|
'python-simplejson',
|
|
'python-pygments']
|
|
|
|
include apache
|
|
|
|
include pip
|
|
a2mod { 'proxy':
|
|
ensure => present,
|
|
}
|
|
a2mod { 'proxy_http':
|
|
ensure => present,
|
|
}
|
|
|
|
package { $packages:
|
|
ensure => present,
|
|
}
|
|
|
|
if ! defined(Package['python-mysqldb']) {
|
|
package { 'python-mysqldb':
|
|
ensure => present,
|
|
}
|
|
}
|
|
|
|
package { 'SQLAlchemy':
|
|
ensure => present,
|
|
provider => pip,
|
|
require => Class[pip],
|
|
}
|
|
|
|
file { '/srv/lodgeit':
|
|
ensure => directory,
|
|
}
|
|
|
|
vcsrepo { '/tmp/lodgeit-main':
|
|
ensure => latest,
|
|
provider => git,
|
|
source => 'https://git.openstack.org/openstack-infra/lodgeit',
|
|
}
|
|
|
|
}
|