Yes, Create a custom fact that checks for the existence of the directory.
I have one that is as simple as ... Facter.add("apde_available") do setcode do if File::directory?("/usr/local/APDE") "true" else "false" end end end then in my manifest ... if ($apde_available =~ /true/) { ... } Cheers On 13/06/11 7:21 PM, Sans wrote:
Any suggestion from anyone else? Is there a way to check "if a directory (or file) already exists, then do something" in Puppet? Cheers!!
-- 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 puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.