system-config/modules/openstack_project/manifests/puppetboard.pp
Paul Belanger dc81e2816f Migrate to puppet-httpd module
puppet-httpd is the openstack-infra module for of puppetlabs-apache (0.0.4)
release.

This patchset will remove the puppetlabs-apache namespace from -infra
allow for possible future patchsets to use newer puppetlabs-apache
modules.

Change-Id: Id9f08de5ca32eac884a01f11a2cf34e1044d3048
Depends-On: I4f4648538801a60f45b28cedc73b24d8905cfe14
Depends-On: Ifcc60d173430e30159aa794e5adb5ba71107e647
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-08-05 13:47:16 -04:00

46 lines
1004 B
Puppet

# Class to configure puppetboard on a node.
# This will only work on the puppetdb server for now
class openstack_project::puppetboard(
$basedir = $::puppetboard::params::basedir,
$user = $::puppetboard::params::user,
$group = $::puppetboard::params::group,
$port = '80',
) inherits ::puppetboard::params {
include ::httpd
class { '::httpd::mod::wsgi': }
class { '::puppetboard':
unresponsive => '1.5',
enable_query => 'False', # This being a python false
}
$docroot = "${basedir}/puppetboard"
# Template Uses:
# - $basedir
#
file { "${docroot}/wsgi.py":
ensure => present,
content => template('puppetboard/wsgi.py.erb'),
owner => $user,
group => $group,
require => User[$user],
}
# Template Uses:
# - $docroot
# - $user
# - $group
# - $port
#
::httpd::vhost { $::fqdn:
port => 80,
docroot => $docroot,
priority => '50',
template => 'openstack_project/puppetboard/puppetboard.vhost.erb',
}
}