On Sat, May 4, 2013 at 9:50 PM, Josh <j...@endries.org> wrote: > > I'm not yet sold on heira; so far it seems to just shift complexity > outside of the classes and add a little more in the process, with > hierarchies and stuff, and now I have data in multiple places... I still > need case statements to handle different OSes and stuff. Eh, we'll see. > Maybe I just haven't read something that explains the benefits well yet.
You should check out https://puppetlabs.com/blog/hiera-for-pouncers-and-stalkers/ as it's a great guide to the benefits of hiera. You really don't need case statements if you use heira, because you can make a hiera structure based on a fact like $::osfamily and then have: osfamily/Redhat.yaml osfamily/Debian.yaml This gives you the benefit that if you drop in a new .yaml file supporting a new distribution you only have to drop it into heira, and not modify multiple manifests. The article I linked probably does a better job of explaining it, but the goal is to remove all the data from your manifests leaving just variables behind, and then hiera fills in all the blanks. It takes some getting used to but I think you'll find it leads to better, cleaner, manifests in the long run. -- 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 post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.