Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Puppet Java manifest
exec { "accept-oracle-license":
command => "/bin/echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections",
unless => "/usr/bin/debconf-get-selections | /bin/grep shared/accepted-oracle-license-v1-1"
apt::ppa { "ppa:webupd8team/java": }
ensure_packages(['oracle-java7-installer', 'tomcat7'], {
require => Apt::Ppa['ppa:webupd8team/java']
file { "/usr/lib/jvm/default-java":
ensure => link,
target => "/usr/lib/jvm/java-7-oracle",
require => Package['oracle-java7-installer'],
notify => Service["tomcat7"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.