I no longer use Puppet actively and this software has not been maintained for some time.
Install the Sun (Oracle) JDK under /usr/java from a tarball.
Include the sunjdk module in your puppet configuration:
include sunjdk
and add required hiera configuration - for example:
sunjdk::versions:
jdk1.7.0_09:
filename: 'jdk-7u9-linux-x64.tar.gz'
default: true
License: Apache License, Version 2.0
GitHub URL: http://erwbgy.github.com/puppet-sunjdk