[EMAIL PROTECTED] ("Paul Lathrop") writes:
> Why are you doing this? This kind of situation usually indicates a
> need to adjust one's mindset in order to work within the Puppet model
> rather than fighting against it.
>
> That said, I think you could do this a couple ways:
>
> 1) An Exec resource with 'onlyif' and make the File resource depend on it.
> 2) A custom fact that checks for the existence of the directory,
> combined with 'if' statements around the File resource.
>
> 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
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.
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.
My guess the poster wants to do the same thing.
Simon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---