Skip to content

Instantly share code, notes, and snippets.

@claytron
Forked from renoirb/init.yml
Last active August 29, 2015 14:02
Show Gist options
  • Save claytron/d446e54c17777b214830 to your computer and use it in GitHub Desktop.
Save claytron/d446e54c17777b214830 to your computer and use it in GitHub Desktop.
#
# How to install automatically Oracle Java 7 under Salt Stack
#
# Thanks Oracle for complicating things :(
#
# 1. Create a java/ folder in your salt master
# 2. Paste this file in init.sls
# 3. salt '*' state.sls java
#
# Source:
# * https://github.com/log0ymxm/salt-jvm/blob/master/init.sls
# * http://architects.dzone.com/articles/puppet-installing-oracle-java
#
oracle-ppa:
pkgrepo.managed:
- humanname: WebUpd8 Oracle Java PPA repository
- ppa: webupd8team/java
oracle-java-license-autoaccept:
debconf.set:
- name: oracle-java7-installer
- data:
'shared/accepted-oracle-license-v1-1': {'type': 'boolean', 'value': True}
- require_in:
- pkg: oracle-java7-installer
oracle-java7-installer:
pkg.installed:
- require:
- pkgrepo: oracle-ppa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment