How can I prevent custom functions from printing errors if required gems are not present on clients?
A client has a module called ‘custom’, which contains a few custom functions in
modules/custom/lib/puppet/parser/functions/. Each of the functions require a couple of different ruby gems that are only present on the puppet master and not on any of the clients. That isn’t a functional problem for them, since the custom functions only ever get executed by the puppet master and they don’t want unnecessary gems installed everywhere.
But they are having an issue when bringing up clients. Because the functions are pluginsynced to each agent, each of the clients throw up errors ... (more)