
... because the latest lint no longer allows usage of legacy facts and top scope fact. Change-Id: Ib4f33d08f9415b4a8533ec6b9b0e6d7637f4e289
39 lines
1.5 KiB
Puppet
39 lines
1.5 KiB
Puppet
# Parameters for puppet-watcher
|
|
#
|
|
class watcher::params {
|
|
include openstacklib::defaults
|
|
|
|
$client_package_name = 'python3-watcherclient'
|
|
$user = 'watcher'
|
|
$group = 'watcher'
|
|
|
|
case $facts['os']['family'] {
|
|
'RedHat': {
|
|
$api_service_name = 'openstack-watcher-api'
|
|
$api_package_name = 'openstack-watcher-api'
|
|
$common_package_name = 'openstack-watcher-common'
|
|
$applier_package_name = 'openstack-watcher-applier'
|
|
$applier_service_name = 'openstack-watcher-applier'
|
|
$decision_engine_package_name = 'openstack-watcher-decision-engine'
|
|
$decision_engine_service_name = 'openstack-watcher-decision-engine'
|
|
$watcher_wsgi_script_source = '/usr/bin/watcher-api-wsgi'
|
|
$watcher_wsgi_script_path = '/var/www/cgi-bin/watcher'
|
|
}
|
|
'Debian': {
|
|
$api_service_name = 'watcher-api'
|
|
$api_package_name = 'watcher-api'
|
|
$common_package_name = 'watcher-common'
|
|
$applier_package_name = 'watcher-applier'
|
|
$applier_service_name = 'watcher-applier'
|
|
$decision_engine_package_name = 'watcher-decision-engine'
|
|
$decision_engine_service_name = 'watcher-decision-engine'
|
|
$watcher_wsgi_script_source = '/usr/bin/watcher-api-wsgi'
|
|
$watcher_wsgi_script_path = '/usr/lib/cgi-bin/watcher'
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${facts['os']['family']}")
|
|
}
|
|
|
|
} # Case $facts['os']['family']
|
|
}
|