Skip to content

Instantly share code, notes, and snippets.

@jglenn9k
Created October 14, 2014 18:15
Show Gist options
  • Save jglenn9k/ef4d5f0a17e2be5bd383 to your computer and use it in GitHub Desktop.
Save jglenn9k/ef4d5f0a17e2be5bd383 to your computer and use it in GitHub Desktop.
Install jdk on Windows
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