Helen Paterson
2014-Feb-25 09:52 UTC
[Puppet Users] install_options =>{$:: variable} -syntax
Hi,
What is the syntax for install_options containing a variable ?
This code below works fine,but i'd like to remove D:\BuildAgent\jre'
and
replace it with ${::javahome}, what should the syntax be?
install_options => [
'/s','STATIC=1','JAVAUPDATE=0','AUTOUPDATECHECK=0',
'INSTALLDIR=D:\BuildAgent\jre' ],
exec { *"winfirewalljava"*:
command =>
"${::posh_cmd} -Command \"netsh advfirewall firewall add rule
name=Java
dir=in action=allow program='D:\\BuildAgent\\jre\\bin\\java.exe'
ENABLE=yes\"",
this does not work
install_options => [
'/s','STATIC=1','JAVAUPDATE=0','AUTOUPDATECHECK=0',
'INSTALLDIR=\"$::agenthome\"\jre'],
Thanks
Helen
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/ef2cd5ee-4d09-48de-adfc-89a419e29e87%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.