Is it posible to generate a subclass from a value in hiera?

i.e.


class yum (
  $subclass_name = undef,
) {
     class yum::repo::$subclass_name


I want to be able to create yumrepos individually without having to 
generate a template file for each one. 

Idea is:

include yum::repo::epel
include yum::repo::kernel

I haven't tested this, but wanted to see if anyone has tried this, if it 
will work, and any implications.

Thanks!

-- 
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/5174ebe4-6f50-47cd-8318-5e7b4189bb0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to