Rene schrieb:
> Hi
> 
> I try to do some things on the system, only if a directory exists. The
> only way I see right now to achieve this is to create a custom fact
> which returns true and fals. Is there a better solution?

Better solutions mostly revolve around getting the directory under 
control too. That really depends on the purpose and genesis of said 
directory.

Another hack would be to create an Exec that fails when the directory 
doesn't exist and depend on that:

| exec { "[ -d ${the_directory} ]": before => Class['stuff'] }
|
| class stuff { ... }

Of course, that'll clutter your output with many failures due to failed 
dependencies.



Regards, DavidS

-- 
dasz.at OG              Tel: +43 (0)664 2602670     Web: http://dasz.at
Klosterneuburg                                         UID: ATU64260999

        FB-Nr.: FN 309285 g          FB-Gericht: LG Korneuburg

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to