fe394add6f
This includes a resource that will generically create the vhost for the specified API. Co-Authored-By: Thomas Herve <therve@redhat.com> Depends-On: I9a9246522810de546a7c460ab1133d6bf9081a15 Change-Id: I253f46f5ad943971dd9ea6995591c72a36953bdb
63 lines
2.3 KiB
Puppet
63 lines
2.3 KiB
Puppet
# == Class: heat::params
|
|
#
|
|
# Parameters for puppet-heat
|
|
#
|
|
class heat::params {
|
|
include ::openstacklib::defaults
|
|
|
|
$client_package_name = 'python-heatclient'
|
|
|
|
case $::osfamily {
|
|
'RedHat': {
|
|
# package names
|
|
$api_package_name = 'openstack-heat-api'
|
|
$api_cloudwatch_package_name = 'openstack-heat-api-cloudwatch'
|
|
$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_cloudwatch_service_name = 'openstack-heat-api-cloudwatch'
|
|
$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'
|
|
$heat_api_cloudwatch_wsgi_script_source = '/usr/bin/heat-wsgi-api-cloudwatch'
|
|
}
|
|
'Debian': {
|
|
# package names
|
|
$api_package_name = 'heat-api'
|
|
$api_cloudwatch_package_name = 'heat-api-cloudwatch'
|
|
$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_cloudwatch_service_name = 'heat-api-cloudwatch'
|
|
$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'
|
|
$heat_api_cloudwatch_wsgi_script_source = '/usr/bin/heat-wsgi-api-cloudwatch'
|
|
# 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")
|
|
}
|
|
}
|
|
}
|