Created
October 14, 2014 18:15
-
-
Save jglenn9k/ef4d5f0a17e2be5bd383 to your computer and use it in GitHub Desktop.
Install jdk on Windows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class 'winjdk' { | |
case $architecture { | |
'x64': { | |
package { 'Java SE Development Kit 7 Update 67 (64-bit)': | |
ensure => '1.7.0.670', | |
source => 'C:\Installers\jdk-7u67-windows-x64.exe', | |
name => 'Java SE Development Kit 7 Update 67 (64-bit)', | |
install_options => { | |
'REBOOT' => '0', | |
'WEB_ANALYTICS=' => '0', | |
}, | |
require => File['C:/Installers/jdk-7u67-windows-x64.exe'], | |
} | |
file { 'C:/Installers': | |
ensure => 'directory', | |
} | |
file { 'C:/Installers/jdk-7u67-windows-x64.exe': | |
ensure => 'present', | |
source => 'puppet:///files/Installers/jdk-7u67-windows-x64.exe' | |
} | |
} | |
default: { | |
notify { "Architecture is ${architecture} which is not supported.": } | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment