I thought that creates attribute of exec resource creates a file. On windows, I have the following init.pp, jdk is correctly installed but myfile2.txt is not created, did I miss something ?
class install_java_win { file {'jdk-6u18-windows-i586.exe': path=> "$c:/tmp/jdk-6u18-windows-i586.exe", ensure=> present, mode=> 0777, source => "puppet://${server}/modules/install_java_win/jdk-6u18-windows-i586.exe", } exec {'java': creates => "c:/tmp/myfile2.txt", cwd => c:/tmp", path => "c:/tmp;${::path}", logoutput => true, command => 'cmd /c jdk-6u18-windows-i586.exe /s INSTALLDIR=c:\\tools\\jdk1.6.0_18 /INSTALLDIRJAVADB=c:\\tools\\jdk1.6.0_18 /INSTALLDIRPUBJRE=c:\\tools\\jdk1.6.0_18', require => [ File['jdk-6u18-windows-i586.exe'] ], } } Cordialement, Bernard Granier CE Plateforme Système bernard.gran...@morpho.com<mailto:bernard.gran...@morpho.com> 01 58 11 32 51 # " This e-mail and any attached documents may contain confidential or proprietary information. If you are not the intended recipient, you are notified that any dissemination, copying of this e-mail and any attachments thereto or use of their contents by any means whatsoever is strictly prohibited. If you have received this e-mail in error, please advise the sender immediately and delete this e-mail and all attached documents from your computer system." # -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.