
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: I3e6853430363c0976a634ca44d0418948d0ded23 Co-Authored-By: Alex Schultz <aschultz@redhat.com>
38 lines
1.5 KiB
Puppet
38 lines
1.5 KiB
Puppet
# Parameters for puppet-watcher
|
|
#
|
|
class watcher::params {
|
|
include ::openstacklib::defaults
|
|
$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'
|
|
$client_package_name = undef
|
|
$watcher_wsgi_script_source = '/usr/lib/python2.7/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'
|
|
$client_package_name = 'python-watcherclient'
|
|
$watcher_wsgi_script_source = '/usr/lib/python2.7/dist-packages/watcher/api/app.wsgi'
|
|
$watcher_wsgi_script_path = '/usr/lib/cgi-bin/watcher'
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::osfamily} operatingsystem")
|
|
}
|
|
|
|
} # Case $::osfamily
|
|
}
|