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.
This commit is contained in:
Gary Larizza 2012-05-12 22:34:00 -07:00
parent 379737c3f9
commit 735522a91b
2 changed files with 6 additions and 4 deletions

View File

@ -116,8 +116,10 @@ class dashboard (
-> Class['dashboard::passenger']
class { 'dashboard::passenger':
dashboard_site => $dashboard_site,
dashboard_port => $dashboard_port,
dashboard_site => $dashboard_site,
dashboard_port => $dashboard_port,
dashboard_config => $dashboard_config,
dashboard_root => $dashboard_root,
}
} else {

View File

@ -24,8 +24,8 @@
class dashboard::passenger (
$dashboard_site,
$dashboard_port,
$dashboard_config = $dashboard::params::dashboard_config,
$dashboard_root = $dashboard::params::dashboard_root,
$dashboard_config,
$dashboard_root
) inherits dashboard {
include apache