Generate /etc/motd : list of classes used on specific node
My motd-puppet-module (generates /etc/motd) module contains a erb-template which contains the following code:
Puppet classes: <% classes.each do |klass| -%><%= klass -%> <% end -%> <% end -%>
I used this to provide a quick overview what is managed by puppet at login.
Unfortunately the list of classes is never complete - i suppose this is caused by resource/class ordering. Are there better ways to get the namens of all assigned classes of a node?