Yeah I know, that would be the best solution, but this directory is a
san device and is not there after kickstart and I want to be sure that
puppet runs without errors even the device is not there.

Thanks a lot for you help

BR

Rene
On Jun 8, 3:20 pm, David Schmitt <da...@dasz.at> wrote:
> 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