![Emilien Macchi](/assets/img/avatar_default.png)
The move of policy.json into code means the file may not exist. We've added support to ensure that the file exists in the openstacklib but we need to make sure the permissions are right for each service. This adds the group information to the policies so it works right. Depends-On: I26e8b1384f4f69712da9d06a4c565dfd1f17c9ed Change-Id: I748ed0cba392d783e75b2cf16833a687d6152a22 Co-Authored-By: Alex Schultz <aschultz@redhat.com>
64 lines
2.4 KiB
Puppet
64 lines
2.4 KiB
Puppet
# == Class: heat::params
|
|
#
|
|
# Parameters for puppet-heat
|
|
#
|
|
class heat::params {
|
|
include ::openstacklib::defaults
|
|
|
|
$client_package_name = 'python-heatclient'
|
|
$group = 'heat'
|
|
|
|
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")
|
|
}
|
|
}
|
|
}
|