On Mon, Nov 17, 2008 at 3:17 PM, Simon J Mudd <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] ("Paul Lathrop") writes: >> Still, I think you'll get more mileage out of telling us what problem >> you are trying to solve so we can help you figure out the best way to >> solve that problem within the Puppet model.
> I posted almost exactly the same problem a couple of days ago: > > - you want to install via a custom installer an application, so you > need to do the following: > 1. copy the file and installer over > 2. run installer and cleanup Well, myself I'd package the application in the native package format, but I'm a bit crazy. > Step 1 above needs to be done ONLY IF the installation has NOT been > completed. (check for some final installation file/directory) > Step 2 depends on step 1 so only takes place if the files are copied. In your situation, assuming the application was impossible to package (anything that builds with Maven seems impossible to Debian package for example) I'd implement this as an Exec; in my head we are trying to model a series of actions, not a File here. So it would be a simple script that did the work, with Exec to run it and a lovely onlyif parameter. > So as I suggested in my posting a few days ago an onlyif option would > be very nice. I phrased it in my posting as unless ".... some > condition", which is just the negative condition of the onlyif > condition. I can see why you'd want onlyif to be a metaparameter. I'm not against it. > My guess the poster wants to do the same thing. Something about his post made you think he wants to install an application using a custom installer? Or you think they'd like it if 'onlyif' was available for File resources? I'm not sure I follow. --Paul --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---