diff --git a/manifests/params.pp b/manifests/params.pp index 9d5da31b..77f01528 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -40,10 +40,17 @@ $ceph_init_override = '/etc/sysconfig/openstack-cinder-volume' $lio_package_name = 'targetcli' - if $::operatingsystem == 'RedHat' and $::operatingsystemrelease >= 7 { - $iscsi_helper = 'lioadm' - } else { - $iscsi_helper = 'tgtadm' + case $::operatingsystem { + 'RedHat', 'CentOS', 'Scientific': { + if $::operatingsystemmajrelease >= 7 { + $iscsi_helper = 'lioadm' + } else { + $iscsi_helper = 'tgtadm' + } + } + default: { + $Iscsi_helper = 'tgtadm' + } } } else {