On Thursday, December 26, 2013 12:25:38 PM UTC-6, Joseph Swick wrote: > > On 12/26/2013 12:48 PM, Josh wrote: > > Joseph, > > > > So, the problem with this method appears to be that once you specify > > "hiera_include('classes')" in the environment's site.pp, Puppet appears > to > > try and make Hiera the ONLY source for node classification. I rely on > > roles from my ENC and profiles for classification as well. > > > > Josh > > > > That's certainly another gotcha with hiera and classes that's good to > know. We went to using hiera exclusively for our node classification, > so we didn't run into that issue as we're not using any other ENCs with > our current configuration. > >
It's good to know only if it's in fact true. The hiera_include() function is simply a wrapper around Puppet's 'include' function that selects the classes to include via an hiera() lookup. (Look for yourself if you don't believe me: https://github.com/puppetlabs/puppet/blob/master/lib/puppet/parser/functions/hiera_include.rb .) Neither hiera_include() nor the underlying include() function inherently interferes with classification via ENC (or node block). With that said, I like hiera for node classification, and I think there's much to be said for using only hiera for that purpose. John -- 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/ae9a7242-0d7a-49e9-859a-e9991ac3f9ff%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.