Files
puppet-cinder/manifests/params.pp
Takashi Kajinami 1b86dc1741 Replace wsgi script
pbr is removing support for wsgi_script due to changes in setuptools.
Use the wsgi script module python code instead.

Note that this change only touches CentOS code. Ubuntu and Debian will
be updated later when we bump the release used in our testing.

Change-Id: I490d7bebbcc9be17257232b9dcbbf8697b95a9da
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
2025-08-20 21:22:23 +09:00

66 lines
2.6 KiB
Puppet

# == Class: cinder::params
#
# Parameters for puppet-cinder
#
class cinder::params {
include openstacklib::defaults
$pyver3 = $openstacklib::defaults::pyver3
$client_package = 'python3-cinderclient'
$user = 'cinder'
$group = 'cinder'
case $facts['os']['family'] {
'Debian': {
$package_name = 'cinder-common'
$api_package = 'cinder-api'
$api_service = 'cinder-api'
$backup_package = 'cinder-backup'
$backup_service = 'cinder-backup'
$scheduler_package = 'cinder-scheduler'
$scheduler_service = 'cinder-scheduler'
$volume_package = 'cinder-volume'
$volume_service = 'cinder-volume'
$db_sync_command = 'cinder-manage db sync'
$tgt_package_name = 'tgt'
$tgt_service_name = 'tgt'
$nfs_client_package_name = 'nfs-common'
$ceph_common_package_name = 'ceph-common'
$target_helper = 'tgtadm'
$lio_package_name = 'targetcli'
$lock_path = '/var/lock/cinder'
$cinder_wsgi_script_path = '/usr/lib/cgi-bin/cinder'
$cinder_wsgi_script_source = '/usr/bin/cinder-wsgi'
$nvme_cli_package_name = 'nvme-cli'
$nvmetcli_package_name = undef
}
'RedHat': {
$package_name = 'openstack-cinder'
$api_package = undef
$api_service = 'openstack-cinder-api'
$backup_package = undef
$backup_service = 'openstack-cinder-backup'
$scheduler_package = undef
$scheduler_service = 'openstack-cinder-scheduler'
$volume_package = undef
$volume_service = 'openstack-cinder-volume'
$db_sync_command = 'cinder-manage db sync'
$tgt_package_name = 'scsi-target-utils'
$tgt_service_name = 'tgtd'
$nfs_client_package_name = 'nfs-utils'
$ceph_common_package_name = 'ceph-common'
$target_helper = 'lioadm'
$lio_package_name = 'targetcli'
$lock_path = '/var/lib/cinder/tmp'
$cinder_wsgi_script_path = '/var/www/cgi-bin/cinder'
$cinder_wsgi_script_source = "/usr/lib/python${pyver3}/site-packages/cinder/wsgi/api.py"
$nvme_cli_package_name = 'nvme-cli'
$nvmetcli_package_name = 'nvmetcli'
}
default: {
fail("Unsupported osfamily: ${facts['os']['family']}")
}
}
}