Hey together,

we added a custom mountpoint on our puppetmaster. On this custom mountpoint 
we store some files.
Usually the files are configuration files.

So now, what is the best way to check following possibilities 
<https://www.dict.cc/englisch-deutsch/possibilities.html>?

If the file exists on the custom mountpoint -> use the file and deploy it 
to the target path <https://www.dict.cc/englisch-deutsch/possibilities.html>
If the file does not exists on the custom mountpoint -> Skip this and go to 
next task in the module 
<https://www.dict.cc/englisch-deutsch/possibilities.html>

Are there any best practices for this? 

Is it possible with find_file? If yes, how? 
Or should i use file? 
Can file handle with undef.... Something like this:

file { '/etc/nfs.conf'.
   source => [
      "puppet:///modules/nfs/conf.${host}",
      "puppet:///custom_mountpoint/nfs/conf.${host}",
      'undef'
   ]
}

Greetings

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/e54326ab-ed73-456c-a68c-60f992a25ba1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to