Hi Helen,

"INSTALLDIR=${::agenthome}\jre"

HTH

Jo
should do the trick

On 02/25/2014 10:52 AM, Helen Paterson wrote:
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+unsubscr...@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.


Next Events:
Zabbix Certified Training | 
http://www.open-future.be/zabbix-certified-training-10-till-12th-march
Zabbix for Large Environments Training | 
http://www.open-future.be/zabbix-large-environments-training-13-till-14th-march
Puppet Intruction Course | 
http://www.open-future.be/puppet-introduction-course-14th-april
Puppet Advanced Training | 
http://www.open-future.be/puppet-advanced-training-15-till-17th-april
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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/530C6919.5070908%40open-future.be.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to