
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
1021 B
Puppet
51 lines
1021 B
Puppet
class lodgeit {
|
|
$packages = [ "nginx",
|
|
"python-imaging",
|
|
"python-jinja2",
|
|
"python-pybabel",
|
|
"python-werkzeug",
|
|
"python-simplejson",
|
|
"python-pygments",
|
|
"drizzle",
|
|
"python-mysqldb" ]
|
|
|
|
include pip
|
|
|
|
package { $packages: ensure => present }
|
|
|
|
package { 'SQLAlchemy':
|
|
provider => pip,
|
|
ensure => present,
|
|
require => Class[pip]
|
|
}
|
|
|
|
file { '/srv/lodgeit':
|
|
ensure => directory
|
|
}
|
|
|
|
service { 'drizzle':
|
|
ensure => running,
|
|
hasrestart => true
|
|
}
|
|
|
|
service { "nginx":
|
|
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"
|
|
}
|
|
|
|
}
|