Skip to content

Commit

Permalink
Merge "Fixes Facts string comparisons in CentOS 7" into stable/icehouse
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Jul 10, 2014
2 parents 988a317 + 445b926 commit be74bc6
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit be74bc6

Please sign in to comment.