cyberious / puppet-windows_java Goto Github PK
View Code? Open in Web Editor NEWPuppet-Windows_Java
License: Apache License 2.0
Puppet-Windows_Java
License: Apache License 2.0
Hi,
encounter an error when i used this module for our Java life cycle. It appears params.pp doesn't include the 8u162 update
Regards,
Hero
I ran in to a situation where I used an incorrect $install_path format.
Example:
windows_java::jdk{"7u55":
install_path => "c:/java/jdk1.7.0_55",
build_number_hash => {
'8u66' => 'b17',
'8u31' => 'b13',
'7u55' => 'b13',
},
default => false,
}
Notice the forward slashes instead of backslashes.
When doing this, Puppet did not die or error in any way. It seemed like the install was successful and then moved on to the next block/section.
I'd like to have forward slashes be allowed (it would decrease my amount on Linux/Windows logic needed in my manifests), but more importantly I'd like this module to FAIL if the installation doesn't succeed. If the installation provides any error output, it should get displayed/captured by Puppet.
Hey cyberious,
Here at puppetlabs, we are currently going through all of our Approved modules on the Puppet Forge. We have some feedback for your module if you would be interested in retaining the approved status. If you are keen on keeping your approved status please ensure you respond as soon as you possibly can.
Many Thanks
The Puppet Approvals Committee.
When running a virgin install of the module I receive the following error:
Jan 14 09:17:03 srvgdypuptst01 puppet-master[18395]: version_info is not a hash or array when accessing it with build_number at /etc/puppet/environments/production/modules/windows_java/manifests/jdk.pp:80 on node nyserver.example.com
Jan 14 09:17:03 srvgdypuptst01 puppet-master[18395]: version_info is not a hash or array when accessing it with build_number at /etc/puppet/environments/production/modules/windows_java/manifests/jdk.pp:80 on node myserver.example.com
Jan 14 09:17:03 srvgdypuptst01 puppet-master[18395]: version_info is not a hash or array when accessing it with build_number at /etc/puppet/environments/production/modules/windows_java/manifests/jdk.pp:80 on node myserver.example.com
manifest config:
windows_java::jdk{'Install 7u51':
version => '7u51',
}
Windows facter output:
architecture => x64
dir => C:\Program Files\Puppet Labs\Puppet\facter
domain => example.com
env_windows_installdir => C:\Program Files\Puppet Labs\Puppet
facterversion => 2.3.0
fqdn => myserver.example.com
hardwaremodel => x64
hostname => myserver
id => joe_user
interfaces => Local_Area_Connection
ipaddress => XXX.XXX.XXX.XXX
ipaddress_local_area_connection => XXX.XXX.XXX.XXX
is_pe => false
is_virtual => true
kernel => windows
kernelmajversion => 6.1
kernelrelease => 6.1.7601
kernelversion => 6.1.7601
macaddress => XX:XX:XX:XX:XX:XX
macaddress_local_area_connection => XX:XX:XX:XX:XX:XX
manufacturer => Phoenix Technologies LTD
memoryfree => 728.30 MB
memoryfree_mb => 728.30
memorysize => 4.00 GB
memorysize_mb => 4095.55
mtu_local_area_connection => 0
netmask => 255.255.0.0
netmask_local_area_connection => XXX.XXX.0.0
network_local_area_connection => XXX.XXX.0.0
operatingsystem => windows
operatingsystemmajrelease => 2008 R2
operatingsystemrelease => 2008 R2
os => {"name"=>"windows", "family"=>"windows", "release"=>{"major"=>"2008 R2", "
full"=>"2008 R2"}}
osfamily => windows
path => C:\Program Files\Puppet Labs\Puppet\puppet\bin;C:\Program Files\Puppet L
abs\Puppet\facter\bin;C:\Program Files\Puppet Labs\Puppet\hiera\bin;C:\Program F
iles\Puppet Labs\Puppet\bin;C:\Program Files\Puppet Labs\Puppet\sys\ruby\bin;C:
Program Files\Puppet Labs\Puppet\sys\tools\bin;C:\Windows\system32;C:\Windows;C:
\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;g:\Program Fi
les (x86)\Microsoft SQL Server\110\Tools\Binn;g:\Program Files\Microsoft SQL Se
rver\110\Tools\Binn;g:\Program Files\Microsoft SQL Server\110\DTS\Binn;C:\Prog
ram Files\Puppet Labs\Puppet\bin;g:\Program Files (x86)\Microsoft SQL Server\110
\Tools\Binn\ManagementStudio;g:\Program Files (x86)\Microsoft SQL Server\110\DT
S\Binn
physicalprocessorcount => 2
processor0 => Intel(R) Xeon(R) CPU E5540 @ 2.53GHz
processor1 => Intel(R) Xeon(R) CPU E5540 @ 2.53GHz
processorcount => 2
processors => {"models"=>["Intel(R) Xeon(R) CPU E5540 @ 2.53GHz", "Intel(R) Xeon
(R) CPU E5540 @ 2.53GHz"], "count"=>2, "physicalcount"=>2}
productname => VMware Virtual Platform
ps => tasklist.exe
puppet_vardir => C:/ProgramData/PuppetLabs/puppet/var
puppetversion => 3.7.3
rubyplatform => x64-mingw32
rubysitedir => C:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/site_ruby/2
.0.0
rubyversion => 2.0.0
serialnumber => blah-blah-blah
system32 => C:\Windows\system32
system_uptime => {"seconds"=>1512940, "hours"=>420, "days"=>17, "uptime"=>"17 da
ys"}
timezone => Central Standard Time
uptime => 17 days
uptime_days => 17
uptime_hours => 420
uptime_seconds => 1512940
virtual => vmware
Am I missing something?
I realized that some build numbers are dependent on the architecture. Example, for 8u45, the current build number for Linux is 8u45-b14 while Windows is 8u45-b15.
That is what made this pull request #8 fail - because I was looking at Linux build numbers, but the test required a particular Windows build.
I think, therefore, the logic that assumes a particular builds number for all archs should be reworked.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.