Robert Foreman wrote:

> Logically speaking it would look something like this:
> 
>             source => $hostname ? {
>                 [ -f puppet:///samba/shares/$hostname.conf ] => 
> "puppet:///samba/shares/$hostname.conf",
>                 default => "puppet:///samba/shares/default.conf",
>             };
> 
> I just can't quite seem to come up with what the syntax would need to 
> look. The shell syntax above is just to convey the logic I'm looking for.
> 
> Any ideas, or is there a better way to do this?

You need to read the documentation for the source parameter of the file type.
It already supports what you want to do.


        /Thomas Bellman

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to