Hi there,
So, functions will ALWAYS be executed on the Puppet MASTER server. They're
never executed on the client. This is why you're seeing the behavior that
you do.
On Wed, Feb 22, 2012 at 12:00 PM, DRivard wrote:
> Hi,
>
> I needed a function to check if a file is existing on the Debian
Hi,
I needed a function to check if a file is existing on the Debian box I
am configuring. So I used this one
module Puppet::Parser::Functions
newfunction(:file_exists, :type => :rvalue) do |args|
if File.exists?(args[0])
return 1
else
return 0
end
end
end
It work gre