
We're about to land some changes to lodgeit and it seems like we might want to be careful about rolling them out. Change-Id: I6e136099ba1f321ad008b14042574211b7d5e56d
51 lines
930 B
Puppet
51 lines
930 B
Puppet
# == Class: lodgeit
|
|
#
|
|
class lodgeit(
|
|
$lodgeit_version = 'master'
|
|
) {
|
|
$packages = [ 'python-imaging',
|
|
'python-jinja2',
|
|
'python-pybabel',
|
|
'python-werkzeug',
|
|
'python-simplejson',
|
|
'python-pygments']
|
|
|
|
include httpd
|
|
|
|
include pip
|
|
httpd_mod { 'proxy':
|
|
ensure => present,
|
|
}
|
|
httpd_mod { 'proxy_http':
|
|
ensure => present,
|
|
}
|
|
|
|
package { $packages:
|
|
ensure => present,
|
|
}
|
|
|
|
if ! defined(Package['python-mysqldb']) {
|
|
package { 'python-mysqldb':
|
|
ensure => present,
|
|
}
|
|
}
|
|
|
|
package { 'SQLAlchemy':
|
|
ensure => present,
|
|
provider => openstack_pip,
|
|
require => Class[pip],
|
|
}
|
|
|
|
file { '/srv/lodgeit':
|
|
ensure => directory,
|
|
}
|
|
|
|
vcsrepo { '/tmp/lodgeit-main':
|
|
ensure => latest,
|
|
revision => $lodgeit_version,
|
|
provider => git,
|
|
source => 'https://opendev.org/opendev/lodgeit',
|
|
}
|
|
|
|
}
|