use
'file:///dev/null'
instead undef

среда, 1 августа 2018 г., 21:13:43 UTC+3 пользователь Darth Krizz написал:
>
> 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/b238207e-bd1b-40cf-a2b6-8d01e43d14f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to