Stupid Puppet Trick: Agreeing to the Sun Java License with Debconf Preseeds and Puppet I had a user ask for Java to be installed on the cluster systems, so I started up by making a simple JRE5 module for puppet, but this first one didn’t quite work: class jre5 { package { "sun-java5-jre": ensure => latest; } } It doesn’t work because Sun wants you to agree to its license before installing the JRE.