Hi All, I recently added the puppet-concat module in order to implement the example motd use case. Now our motd includes a list of modules being used on the server, which is awesome.
All the modules define an motd::register so they expect that the motd module was included. When a node does not include the module all those dependent modules fail. I would like to have each module first check to see if the motd class has been included. Current example: class pulp (.. ..... # list this module/class in motd os::motd::register {"pulp": } } Future example: class pulp (.. ..... if defined(os::motd) { # list this module/class in motd os::motd::register {"pulp": } } } The question is whether this is the right way to go about it? Does the define wait for all class declarations before checking (does order matter)? Thanks, Ryan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.