16091c8dd6
This change replaces current implementation about coordination parameters by oslo::coordination resource type, so that we can gather all logics related to coordination in a single place. Depends-on: https://review.opendev.org/791628 Change-Id: Id1a8ef196afe05d8e484c2a69ec92d6ebed7fbe2
55 lines
1.9 KiB
Puppet
55 lines
1.9 KiB
Puppet
# Parameters for puppet-aodh
|
|
#
|
|
class aodh::params {
|
|
include openstacklib::defaults
|
|
|
|
$client_package_name = 'python3-aodhclient'
|
|
$group = 'aodh'
|
|
$expirer_command = 'aodh-expirer'
|
|
|
|
case $::osfamily {
|
|
'RedHat': {
|
|
$common_package_name = 'openstack-aodh-common'
|
|
$api_package_name = 'openstack-aodh-api'
|
|
$api_service_name = 'httpd'
|
|
$notifier_package_name = 'openstack-aodh-notifier'
|
|
$notifier_service_name = 'openstack-aodh-notifier'
|
|
$evaluator_package_name = 'openstack-aodh-evaluator'
|
|
$evaluator_service_name = 'openstack-aodh-evaluator'
|
|
$expirer_package_name = 'openstack-aodh-expirer'
|
|
$expirer_service_name = 'openstack-aodh-expirer'
|
|
$listener_package_name = 'openstack-aodh-listener'
|
|
$listener_service_name = 'openstack-aodh-listener'
|
|
$aodh_wsgi_script_dir = '/var/www/cgi-bin/aodh'
|
|
$aodh_wsgi_script_source = '/usr/bin/aodh-api'
|
|
}
|
|
'Debian': {
|
|
$common_package_name = 'aodh-common'
|
|
$api_package_name = 'aodh-api'
|
|
case $::operatingsystem {
|
|
'Ubuntu': {
|
|
$api_service_name = 'httpd'
|
|
}
|
|
default: {
|
|
$api_service_name = 'aodh-api'
|
|
}
|
|
}
|
|
$notifier_package_name = 'aodh-notifier'
|
|
$notifier_service_name = 'aodh-notifier'
|
|
$evaluator_package_name = 'aodh-evaluator'
|
|
$evaluator_service_name = 'aodh-evaluator'
|
|
$expirer_package_name = 'aodh-expirer'
|
|
$expirer_service_name = 'aodh-expirer'
|
|
$listener_package_name = 'aodh-listener'
|
|
$listener_service_name = 'aodh-listener'
|
|
$aodh_wsgi_script_dir = '/usr/lib/cgi-bin/aodh'
|
|
$aodh_wsgi_script_source = '/usr/share/aodh/app.wsgi'
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::osfamily} operatingsystem: ${::operatingsystem}, \
|
|
module ${module_name} only support osfamily RedHat and Debian")
|
|
}
|
|
|
|
} # Case $::osfamily
|
|
}
|