56 lines
1.8 KiB
Puppet
56 lines
1.8 KiB
Puppet
# == Class: heat::params
|
|
#
|
|
# Parameters for puppet-heat
|
|
#
|
|
class heat::params {
|
|
|
|
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'
|
|
$client_package_name = 'python-heatclient'
|
|
$common_package_name = 'openstack-heat-common'
|
|
$sqlite_package_name = undef
|
|
$pymysql_package_name = undef
|
|
# 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'
|
|
}
|
|
'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'
|
|
$client_package_name = 'python-heatclient'
|
|
$common_package_name = 'heat-common'
|
|
$sqlite_package_name = 'python-pysqlite2'
|
|
$pymysql_package_name = 'python-pymysql'
|
|
# 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'
|
|
# 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")
|
|
}
|
|
}
|
|
}
|