Skip to content

Commit 8053a45

Browse files
committed
changes to understand the error on the Hyper flaver of server
1 parent bca39d0 commit 8053a45

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

‎manifests/init.pp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@
116116
# If we are running on the Server Hyper-V release, do not install
117117
# the Java Web plugins.
118118
#
119-
if $java::params::editionID == 'ServerHyperV' {
119+
if 'ServerHyper' in $java::params::editionInfo {
120120
$web_java = 'WEB_JAVA=0'
121121
} else {
122-
$web_java = ''
122+
$web_java = 'WEB_JAVA=1'
123123
}
124124

125125
exec { 'install_jre':

‎manifests/params.pp‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,10 @@
138138
#
139139
# We do not want Java to install the WEB plugins on installed on the
140140
# Server Hyper-V release of Windows Server. Collect the Windows Edition
141-
# from the registry so we can detect which flaver of Windows were are
142-
# running on.
141+
# from the registry so init.pp can decide if the Web plugins should
142+
# be installed.
143143
#
144144
$editionInfo = inline_template("<%= `reg.exe query \"HKLM\\\\SOFTWARE\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\" /v EditionID` -%>")
145-
$rawData = split($edID, ' +')
146-
$editionID = $rawData[4]
147145

148146
$systemdrive = inline_template("<%= ENV['SystemDrive'] -%>")
149147

0 commit comments

Comments
 (0)