Am 08.12.2008 um 22:14 schrieb Peter Meier: >> I think you'll want to try a custom function >> http://reductivelabs.com/trac/puppet/wiki/WritingYourOwnFunctions >> as they get executed server-side. Just cook up some ruby code to >> check for your file existence, and you're almost done. > > no, facts get always executed on the client. custom facts are sent > down to the client (if using factsync) and are executed there
Not fact, function. The first 2 sentences of the link read: """ The Puppet language and interpreter is very extensible. One of the places you can extend Puppet is in creating new functions to be executed on the server (the host running puppetmasterd) at the time that the manifest is compiled. """ So yes, they get executed on the server and you can very well query the existence of files on the server. Felix Schäfer --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---