This is possible with the help of chefs .
make sure the functions are defined in your namespace using ruby ββmodules:
module Foo def very_useful_check true end end class Chef::Recipe::namespace include Foo end
Then you can use it in any recipe, for example:
myvar = Foo.very_useful_check
source share