system-config/modules/lodgeit/manifests/init.pp
Monty Taylor a6c709c86f Clean up post-apache move carnage.
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
2012-08-12 17:49:33 +00:00

53 lines
1.0 KiB
Puppet

class lodgeit {
$packages = [ "python-imaging",
"python-jinja2",
"python-pybabel",
"python-werkzeug",
"python-simplejson",
"python-pygments",
"drizzle",
"python-mysqldb" ]
include apache
include pip
a2mod { 'proxy':
ensure => present
}
a2mod { 'proxy_http':
ensure => present
}
package { $packages: ensure => present }
package { 'SQLAlchemy':
provider => pip,
ensure => present,
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-ci/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"
}
}