
Currently we support usage of distro packages only, and this custom fact can be simply replaced by the default fact. Change-Id: Ie9000665e796de88195298016146957f6b6fa862
44 lines
1.7 KiB
Puppet
44 lines
1.7 KiB
Puppet
# Parameters for puppet-watcher
|
|
#
|
|
class watcher::params {
|
|
include openstacklib::defaults
|
|
|
|
$pyver3 = $::openstacklib::defaults::pyver3
|
|
|
|
$client_package_name = 'python3-watcherclient'
|
|
$group = 'watcher'
|
|
|
|
case $::osfamily {
|
|
'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/lib/python${pyver3}/site-packages/watcher/api/app.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'
|
|
if ($::operatingsystem == 'Debian') {
|
|
$watcher_wsgi_script_source = '/usr/share/watcher-common/app.wsgi'
|
|
} else {
|
|
$watcher_wsgi_script_source = '/usr/lib/python3/dist-packages/watcher/api/app.wsgi'
|
|
}
|
|
$watcher_wsgi_script_path = '/usr/lib/cgi-bin/watcher'
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::osfamily} operatingsystem")
|
|
}
|
|
|
|
} # Case $::osfamily
|
|
}
|