
In anticipation of puppet 4, start trying to deal with puppet 4 things that can be helpfully predicted by puppet lint plugins. Also fix lint errors caught by the puppet-lint-absolute_classname-check and puppet-lint-empty_string-check gem as well as arrow alignment errors not caught before. The has_variable? function in the layout.html.erb template will return true whether $image is set to empty string or undef, so we change the template to look for nil so that the new default of undef will work correctly. Change-Id: I6738cfef08e0cf2faeabed469b9eff5e3c0bbb5a
48 lines
867 B
Puppet
48 lines
867 B
Puppet
# == Class: lodgeit
|
|
#
|
|
class lodgeit {
|
|
$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 => 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',
|
|
}
|
|
|
|
}
|