We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 988a317 + 445b926 commit be74bc6Copy full SHA for be74bc6
1 file changed
manifests/params.pp
@@ -40,10 +40,17 @@
40
$ceph_init_override = '/etc/sysconfig/openstack-cinder-volume'
41
$lio_package_name = 'targetcli'
42
43
- if $::operatingsystem == 'RedHat' and $::operatingsystemrelease >= 7 {
44
- $iscsi_helper = 'lioadm'
45
- } else {
46
- $iscsi_helper = 'tgtadm'
+ case $::operatingsystem {
+ 'RedHat', 'CentOS', 'Scientific': {
+ if $::operatingsystemmajrelease >= 7 {
+ $iscsi_helper = 'lioadm'
47
+ } else {
48
+ $iscsi_helper = 'tgtadm'
49
+ }
50
51
+ default: {
52
+ $Iscsi_helper = 'tgtadm'
53
54
}
55
56
} else {
0 commit comments