Hi, I want to include hiera classes.
--- roles::webserver::apache::classes: - my_apache roles::backup::bacula::classes: - bacula roles::timeserver::ntpd::classes: - ntpd roles::databaseserver::mysql::classes: - mysqld I used to use the follwoing (ugly) code in nodes.pp to do so: if ($roles) { $roles.each |$category, $classes| { if ($classes) and (category) { $classes.each |$class| { if ($class) { hiera_include ("roles::${category}::${class}::classes", {}) } } } } } Is there a better way e.g. using lookup? Thank you! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/xn0lddu4bbmleo000%40news.gmane.org. For more options, visit https://groups.google.com/d/optout.