I am having a issue of understanding how I could make puppet run a command only if another module/class is installed. I read that Define function could do it, but I did not understand it. Example what I am trying to do:
Lets say I have a module/class SSH and module/class SSH Keys and then I want to run a command in SSH Keys only if SSH module/class is defined in node.
I am doing this for NagiOS, to make sure that NagiOS only monitors those servers that have a module installed that it wants to monitor.
PS: Sorry if I explained it badly.