
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: I24400d82781d9c1d4e8d559691eff7832053b87b Co-Authored-By: Alex Schultz <aschultz@redhat.com>
71 lines
2.6 KiB
Puppet
71 lines
2.6 KiB
Puppet
# == Class: cinder::params
|
|
#
|
|
# Parameters for puppet-cinder
|
|
#
|
|
class cinder::params {
|
|
include ::openstacklib::defaults
|
|
|
|
$client_package = 'python-cinderclient'
|
|
$group = 'cinder'
|
|
$cinder_wsgi_script_source = '/usr/bin/cinder-wsgi'
|
|
|
|
if $::osfamily == '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'
|
|
$ceph_init_override = '/etc/init/cinder-volume.override'
|
|
$ceph_common_package_name = 'ceph-common'
|
|
$iscsi_helper = 'tgtadm'
|
|
$lio_package_name = 'targetcli'
|
|
$lock_path = '/var/lock/cinder'
|
|
$cinder_wsgi_script_path = '/usr/lib/cgi-bin/cinder'
|
|
$pywbem_package_name = 'python-pywbem'
|
|
|
|
} elsif($::osfamily == 'RedHat') {
|
|
|
|
$package_name = 'openstack-cinder'
|
|
$api_package = false
|
|
$api_service = 'openstack-cinder-api'
|
|
$backup_package = false
|
|
$backup_service = 'openstack-cinder-backup'
|
|
$scheduler_package = false
|
|
$scheduler_service = 'openstack-cinder-scheduler'
|
|
$volume_package = false
|
|
$volume_service = 'openstack-cinder-volume'
|
|
$db_sync_command = 'cinder-manage db sync'
|
|
$tgt_package_name = 'scsi-target-utils'
|
|
$tgt_service_name = 'tgtd'
|
|
$ceph_init_override = '/etc/sysconfig/openstack-cinder-volume'
|
|
$ceph_common_package_name = 'ceph-common'
|
|
$lio_package_name = 'targetcli'
|
|
$lock_path = '/var/lib/cinder/tmp'
|
|
$cinder_wsgi_script_path = '/var/www/cgi-bin/cinder'
|
|
$pywbem_package_name = 'pywbem'
|
|
|
|
case $::operatingsystem {
|
|
'RedHat', 'CentOS', 'Scientific', 'OracleLinux': {
|
|
if (versioncmp($::operatingsystemmajrelease, '7') >= 0) {
|
|
$iscsi_helper = 'lioadm'
|
|
} else {
|
|
$iscsi_helper = 'tgtadm'
|
|
}
|
|
}
|
|
default: {
|
|
$iscsi_helper = 'lioadm'
|
|
}
|
|
}
|
|
|
|
} else {
|
|
fail("unsupported osfamily ${::osfamily}, currently Debian and Redhat are the only supported platforms")
|
|
}
|
|
}
|