Skip to content

Instantly share code, notes, and snippets.

@amitu
Created September 11, 2013 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amitu/6529103 to your computer and use it in GitHub Desktop.
Save amitu/6529103 to your computer and use it in GitHub Desktop.
installing jdk7 via salt
java7_ppa:
cmd.run:
- name: add-apt-repository ppa:webupd8team/java --yes && apt-get update
- user: root
accept-license:
cmd.run:
- name: echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
- unless: debconf-get-selections | grep -q shared/accepted-oracle-license-v1-1
- user: root
jdk7:
pkg.installed:
- name: oracle-java7-installer
- pkgrepo: apt-get
- requires:
- cmd: accept-license
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment