Puppet Class: dashboard::passenger
- Inherits:
- dashboard
- Defined in:
- manifests/passenger.pp
Overview
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
Actions:
Requires:
Sample Usage:
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'manifests/passenger.pp', line 15
class dashboard::passenger (
$dashboard_site,
$dashboard_port
) inherits dashboard {
Class ['::passenger']
-> Apache::Vhost[$dashboard_site]
class { '::passenger':
port => $dashboard_port,
}
file { '/etc/init.d/puppet-dashboard':
ensure => absent,
}
case $operatingsystem {
'centos','redhat','oel': {
file { '/etc/sysconfig/puppet-dashboard':
ensure => absent,
}
}
'debian','ubuntu': {
file { '/etc/default/puppet-dashboard':
ensure => absent,
}
}
}
apache::vhost { $dashboard_site:
port => '8080',
priority => '50',
docroot => '/usr/share/puppet-dashboard/public',
template => 'dashboard/puppet-dashboard-passenger-vhost.erb',
}
}
|