Replies: 3 comments 5 replies
-
@pier4r Hope you are doing well. Maybe have a look at Exec OnlyIf and Exec Unless |
Beta Was this translation helpful? Give feedback.
-
Hi @pier4r, I think it is safe to say that facts are your best option in this case. Especially when your Puppet client isn't also a master and compiles the catalog for itself, the master cannot know whether files exist on the client without facts. That is a direct consequence from the catalog compilation process. Before the master compiles a catalog, it gathers all external data. The sole option to react dynamically during catalog compilation are (Puppet) functions, which are run on the Puppet master. In theory, you could implement a function that contacts your client node to check whether a specific file exists. That sounds like a bad idea to me because of all the requirements attached to that. With enough determination however... Ciao, |
Beta Was this translation helpful? Give feedback.
-
I have a module that lets you do partial catalog enforcement based on conditions you set, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Countless times I wanted to know if a file was there, as a switch for certain resources.
This may be suboptimal, but at least works. Is there anything better?
Beta Was this translation helpful? Give feedback.
All reactions