Created
          May 18, 2015 23:10 
        
      - 
      
 - 
        
Save johnduarte/a26d17a9e3cb4a19a9c7 to your computer and use it in GitHub Desktop.  
    java-windows.pp
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | file { 'C:/Users/Administrator/jdk-8u45-windows-x64.exe': | |
| mode => '0777', | |
| } | |
| -> | |
| package {'java': | |
| ensure => installed, | |
| source => 'C:/Users/Administrator/jdk-8u45-windows-x64.exe', | |
| install_options => ['INSTALLDIR=C:\java8', 'STATIC=1', '/s'], | |
| } | |
| registry_value { 'HKLM\System\CurrentControlSet\Control\Session Manager\Environment\JAVA_HOME': | |
| ensure => present, | |
| type => string, | |
| data => 'C:\java8' | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment