e5cc108c00
and replace hard-codes by definition in params.pp . Change-Id: I4fc49eab447ef2b7e4f0d6cbd75f193cff7719b9
59 lines
2.0 KiB
Puppet
59 lines
2.0 KiB
Puppet
# == Class: heat::params
|
|
#
|
|
# Parameters for puppet-heat
|
|
#
|
|
class heat::params {
|
|
include openstacklib::defaults
|
|
|
|
$client_package_name = 'python3-heatclient'
|
|
$user = 'heat'
|
|
$group = 'heat'
|
|
|
|
case $::osfamily {
|
|
'RedHat': {
|
|
# package names
|
|
$api_package_name = 'openstack-heat-api'
|
|
$api_cfn_package_name = 'openstack-heat-api-cfn'
|
|
$engine_package_name = 'openstack-heat-engine'
|
|
$common_package_name = 'openstack-heat-common'
|
|
# service names
|
|
$api_service_name = 'openstack-heat-api'
|
|
$api_cfn_service_name = 'openstack-heat-api-cfn'
|
|
$engine_service_name = 'openstack-heat-engine'
|
|
# WSGI scripts
|
|
$heat_wsgi_script_path = '/var/www/cgi-bin/heat'
|
|
$heat_api_wsgi_script_source = '/usr/bin/heat-wsgi-api'
|
|
$heat_api_cfn_wsgi_script_source = '/usr/bin/heat-wsgi-api-cfn'
|
|
}
|
|
'Debian': {
|
|
# package names
|
|
$api_package_name = 'heat-api'
|
|
$api_cfn_package_name = 'heat-api-cfn'
|
|
$engine_package_name = 'heat-engine'
|
|
$common_package_name = 'heat-common'
|
|
# service names
|
|
$api_service_name = 'heat-api'
|
|
$api_cfn_service_name = 'heat-api-cfn'
|
|
$engine_service_name = 'heat-engine'
|
|
# WSGI scripts
|
|
$heat_wsgi_script_path = '/usr/lib/cgi-bin/heat'
|
|
$heat_api_wsgi_script_source = '/usr/bin/heat-wsgi-api'
|
|
$heat_api_cfn_wsgi_script_source = '/usr/bin/heat-wsgi-api-cfn'
|
|
# Operating system specific
|
|
case $::operatingsystem {
|
|
'Ubuntu': {
|
|
$libvirt_group = 'libvirtd'
|
|
}
|
|
default: {
|
|
$libvirt_group = 'libvirt'
|
|
}
|
|
}
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::osfamily} operatingsystem: \
|
|
${::operatingsystem}, module ${module_name} only support osfamily \
|
|
RedHat and Debian")
|
|
}
|
|
}
|
|
}
|