700b5e4148
This is the prep work to migrate some common parameters from the api class to the base class, and implements basic functionality so that the base class provides consistent functionality in all modules. Change-Id: I0e20b135e8c29f1d27d39d2940d49ea30a1f512c
42 lines
1.6 KiB
Puppet
42 lines
1.6 KiB
Puppet
# == Class: barbican::params
|
|
#
|
|
# Parameters for puppet-barbican
|
|
#
|
|
class barbican::params {
|
|
include openstacklib::defaults
|
|
|
|
$client_package_name = 'python3-barbicanclient'
|
|
$user = 'barbican'
|
|
$group = 'barbican'
|
|
$dogtag_client_package = 'pki-base'
|
|
|
|
case $::osfamily {
|
|
'RedHat': {
|
|
$common_package_name = 'openstack-barbican-common'
|
|
$api_package_name = 'openstack-barbican-api'
|
|
$api_service_name = 'openstack-barbican-api'
|
|
$worker_package_name = 'openstack-barbican-worker'
|
|
$worker_service_name = 'openstack-barbican-worker'
|
|
$keystone_listener_package_name = 'openstack-barbican-keystone-listener'
|
|
$keystone_listener_service_name = 'openstack-barbican-keystone-listener'
|
|
$barbican_wsgi_script_path = '/var/www/cgi-bin/barbican'
|
|
$barbican_wsgi_script_source = '/usr/bin/barbican-wsgi-api'
|
|
}
|
|
'Debian': {
|
|
$common_package_name = 'barbican-common'
|
|
$api_service_name = 'barbican-api'
|
|
$api_package_name = 'barbican-api'
|
|
$worker_package_name = 'barbican-worker'
|
|
$worker_service_name = 'barbican-worker'
|
|
$keystone_listener_package_name = 'barbican-keystone-listener'
|
|
$keystone_listener_service_name = 'barbican-keystone-listener'
|
|
$barbican_wsgi_script_path = '/usr/lib/cgi-bin/barbican'
|
|
$barbican_wsgi_script_source = '/usr/bin/barbican-wsgi-api'
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily: ${::osfamily} operating system")
|
|
}
|
|
|
|
} # Case $::osfamily
|
|
}
|