That's probably the cleanest way to do it.

A more hacky version would be to use an exec:

exec { "isithere":
    command => "echo true",
    onlyif => "test -d /some/path"
}

(I won't back the exact syntax there since I just pulled it out of thin air).

Trevor

On Mon, Jun 8, 2009 at 09:08, Rene<rene.zbin...@gmail.com> wrote:
>
> 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?
>
> BR
> Rene
> >
>

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