
This places the puppet web dashboard puppetboard from https://github.com/nedap/puppetboard onto the puppetdb server. This enables anyone to see the output of puppet runs, which nodes are failing and which nodes have not checked in over time. We can also quickly and interactively query the facts database. This also modifies install_modules.sh to support a list of modules that will be installed without dependency resolution. Change-Id: I09d09410dd8fa71759ce6b2f9c7f34f78eefe204
45 lines
958 B
Puppet
45 lines
958 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',
|
|
) {
|
|
|
|
include apache
|
|
|
|
class { 'apache::mod::wsgi': }
|
|
|
|
class { '::puppetboard':
|
|
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
|
|
#
|
|
apache::vhost { $::fqdn:
|
|
port => 80,
|
|
docroot => 'MEANINGLESS ARGUMENT',
|
|
priority => '50',
|
|
template => 'openstack_projects/puppetboard/puppetboard.vhost.erb',
|
|
}
|
|
|
|
}
|