Skip to content

Instantly share code, notes, and snippets.

@carpnick
Created January 29, 2015 03:27
Show Gist options
  • Save carpnick/826a1f8b2ef012edf4b2 to your computer and use it in GitHub Desktop.
Save carpnick/826a1f8b2ef012edf4b2 to your computer and use it in GitHub Desktop.
include_recipe "git::default"
case node['platform_family']
when 'debian'
include_recipe 'jenkins::java'
when 'rhel'
include_recipe 'jenkins::java'
when 'windows'
node.default['java']['windows']['url']='http://myinternalrepo.foo.bar/jdk-8u31-windows-x64.exe'
node.default['java']['install_flavor'] = "windows"
node.default['java']['windows']['checksum'] = nil
node.default['java']['windows']['package_name'] = "Java SE Development Kit 8 Update 31 (64-bit)"
include_recipe "java::windows"
else
fail "`#{node['platform_family']}' is not supported!"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment