system-config/modules/lodgeit/manifests/init.pp
Monty Taylor 74460853d1 Rename CI to Infra in MANY MANY places.
Change-Id: I409bd50ae374e0288531f07cfeea34856c5f8067
Reviewed-on: https://review.openstack.org/17319
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: James E. Blair <corvus@inaugust.com>
2012-12-16 17:30:47 +00:00

62 lines
1.1 KiB
Puppet

# == Class: lodgeit
#
class lodgeit {
$packages = [ 'python-imaging',
'python-jinja2',
'python-pybabel',
'python-werkzeug',
'python-simplejson',
'python-pygments',
'drizzle']
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,
}
service { 'drizzle':
ensure => running,
hasrestart => true,
}
vcsrepo { '/tmp/lodgeit-main':
ensure => latest,
provider => git,
source => 'https://github.com/openstack-infra/lodgeit.git',
}
# create initial git DB backup location
exec { 'create_db_backup':
command => 'git init /var/backups/lodgeit_db',
path => '/bin:/usr/bin',
onlyif => 'test ! -d /var/backups/lodgeit_db',
}
}