On Oct 11, 2014 2:14 AM, "Carthik Sharma" <cart...@puppetlabs.com> wrote: > > There isn't a built-in function, so I'd write a function
Functions run on the master, not agent (unless you're using 'apply', like running masterless); you'd need a fact to test if the file exists on the agent side, which is easy to do with an external fact. Ex: facter/facts.d/foo_exists.sh #!/bin/sh test -e /foo && echo "foo_exists=true" : Wil -- 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/CAMmm3r4PpKiCzTesurKpp9G7c1Ucyzn5GUudC7Tk2zMhf5L_%2Bw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.