Found it. Thanks. I thought I had read something like that somewhere, but I got hung with using a selector.
file { "/path/to/my/file": source => [ "/nfs/files/file.$host", "/nfs/files/file.$operatingsystem", "/nfs/files/file" ] } On Wed, Nov 19, 2008 at 9:01 AM, Thomas Bellman <[EMAIL PROTECTED]> wrote: > > 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 -~----------~----~----~----~------~----~------~--~---