| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,10 +40,17 @@ | |||
| 40 | 40 | $ceph_init_override = '/etc/sysconfig/openstack-cinder-volume' | |
| 41 | 41 | $lio_package_name = 'targetcli' | |
| 42 | 42 | ||
| 43 | - if $::operatingsystem == 'RedHat' and $::operatingsystemrelease >= 7 { | ||
| 44 | - $iscsi_helper = 'lioadm' | ||
| 45 | - } else { | ||
| 46 | - $iscsi_helper = 'tgtadm' | ||
| 43 | + case $::operatingsystem { | ||
| 44 | + 'RedHat', 'CentOS', 'Scientific': { | ||
| 45 | + if $::operatingsystemmajrelease >= 7 { | ||
| 46 | + $iscsi_helper = 'lioadm' | ||
| 47 | + } else { | ||
| 48 | + $iscsi_helper = 'tgtadm' | ||
| 49 | + } | ||
| 50 | + } | ||
| 51 | + default: { | ||
| 52 | + $Iscsi_helper = 'tgtadm' | ||
| 53 | + } | ||
| 47 | 54 | } | |
| 48 | 55 | ||
| 49 | 56 | } else { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments