class installjava7::x86 {
   
   
   
   package { 'Java 7 Update 51':
      ensure          =>'7.0.510' ,
      source          => '\\cam-OPS20\Install\IT 
Apps\Java\jre-7u51-windows-i586.exe',
      install_options => [ 
'/s','STATIC=1','JAVAUPDATE=0','AUTOUPDATECHECK=0',"INSTALLDIR=${::javahome}"],
      notify => Exec["winfirewalljava"],
      
     
           }

   exec { "winfirewalljava":
    command   => "${::posh_cmd} -Command \"netsh advfirewall firewall add 
rule name=Java dir=in action=allow 
program='\"${::javahome}\"\\bin\\java.exe' ENABLE=yes\"",
    refreshonly => true,
    require =>  Package ['Java 7 Update 51'],

        }    
    
                }

site.pp

$agenthome ="d:\\buildagent"
$javahome ="d:\\buildagent\\jre"

On Tuesday, February 25, 2014 10:45:14 AM UTC, Felix.Frank wrote:
>
> Hi, 
>
> On 02/25/2014 11:30 AM, Helen Paterson wrote: 
> > Thank you, although that works, it means all other install options are 
> > ignored ','JAVAUPDATE=0','AUTOUPDATECHECK=0. as check for updates is 
> enabled 
>
> that wouldn't appear to be a puppet related problem. To be safe, though, 
> can you share the relevant manifest snippet in its current form again? 
>
> Thanks, 
> Felix 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/14e1ba4c-d43a-4f58-8a3d-06fcb48b18d9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to