Gary Larizza 735522a91b Expose dashboard::passenger params to dashboard
To treat the entire module like an API, this commit exposes the
dashboard_config and dashboard_root parameters (used in the
dashboard::passenger class) to the dashboard class and defaults
the values to those declared in the dashboard::params class.
2012-05-12 22:34:00 -07:00

51 lines
964 B
Puppet

# Class: dashboard::passenger
#
# This class configures parameters for the puppet-dashboard module.
#
# Parameters:
# [*dashboard_site*]
# - The ServerName setting for Apache
#
# [*dashboard_port*]
# - The port on which puppet-dashboard should run
#
# [*dashboard_config*]
# - The Dashboard configuration file
#
# [*dashboard_root*]
# - The path to the Puppet Dashboard library
#
# Actions:
#
# Requires:
#
# Sample Usage:
#
class dashboard::passenger (
$dashboard_site,
$dashboard_port,
$dashboard_config,
$dashboard_root
) inherits dashboard {
include apache
include passenger
file { '/etc/init.d/puppet-dashboard':
ensure => absent,
}
file { 'dashboard_config':
ensure => absent,
path => $dashboard_config,
}
apache::vhost { $dashboard_site:
port => $dashboard_port,
priority => '50',
docroot => "${dashboard_root}/public",
template => 'dashboard/passenger-vhost.erb',
}
}