20 lines
577 B
Puppet
20 lines
577 B
Puppet
# these parameters need to be accessed from several locations and
|
|
# should be considered to be constant
|
|
class horizon::params {
|
|
|
|
$dashboard_enabled = '/usr/share/openstack-dashboard/openstack_dashboard/enabled'
|
|
|
|
case $::osfamily {
|
|
'RedHat': {
|
|
$http_service = 'httpd'
|
|
}
|
|
'Debian': {
|
|
$http_service = 'apache2'
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, module ${module_name} only support osfamily RedHat and Debian")
|
|
}
|
|
}
|
|
|
|
}
|