Files
puppet-heat/manifests/params.pp
Takashi Kajinami 9fe12a5c2a Replace wsgi script
pbr is removing support for wsgi_script due to changes in setuptools.
Use the wsgi script module python code instead.

Note that this change only touches CentOS code. Ubuntu and Debian will
be updated later when we bump the release used in our testing.

Change-Id: Ie3a0740a69733728a254e20bd8029f04bc4106ab
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-08-20 20:00:07 +09:00

59 lines
2.0 KiB
Puppet

# == Class: heat::params
#
# Parameters for puppet-heat
#
class heat::params {
include openstacklib::defaults
$pyver3 = $openstacklib::defaults::pyver3
$client_package_name = 'python3-heatclient'
$user = 'heat'
$group = 'heat'
case $facts['os']['family'] {
'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/lib/python${pyver3}/site-packages/heat/wsgi/api.py"
$heat_api_cfn_wsgi_script_source = "/usr/lib/python${pyver3}/site-packages/heat/wsgi/cfn.py"
}
'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 $facts['os']['name'] {
'Ubuntu': {
$libvirt_group = 'libvirtd'
}
default: {
$libvirt_group = 'libvirt'
}
}
}
default: {
fail("Unsupported osfamily: ${facts['os']['family']}")
}
}
}