Skip to content
This repository has been archived by the owner on May 25, 2020. It is now read-only.

Commit

Permalink
fix RedHat case
Browse files Browse the repository at this point in the history
  • Loading branch information
aharden committed Nov 11, 2015
1 parent 66ffdda commit eb0e395
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions manifests/install/nix.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,21 @@
include wget

case $::osfamily {
'AIX': { $group = 'system' }
'AIX': {
$group = 'system'
}
'Redhat': {
$group = 'root'
if ($::operatingsystemmajrelease == 5) {
$wgetflags = ['--secure-protocol=TLSv1']
}
else {
$wgetflags = ''
}
}
default: { $group = 'root' }
default: {
$group = 'root'
}
}

if (versioncmp($version,$::pe_version) > 0) {
Expand All @@ -34,7 +39,7 @@
timeout => 0,
redownload => true,
verbose => false,
flags => $wgetflags,
flags => $wgetflags,
nocheckcertificate => true,
} ->
exec { "/bin/bash -e ${staging_dir}/install.bash":
Expand Down

0 comments on commit eb0e395

Please sign in to comment.