On 25 March 2013 10:12, Robin Lee Powell <[email protected]>wrote:
> On Fri, Mar 22, 2013 at 04:22:19PM -0700, Aaron Mills wrote: > > > > The biggest pain point for us is that having hiera + puppet in the > > same repo feels like extra work. If they're going to live > > together, why even use hiera? Why not just set variables at the > > node level? > > For me, here are some reasons to want to do it that way (I'm looking > at moving to Hiera right now): > These are exactly the reasons I moved to hiera when I switched my environment over to puppet 3 from 2.6. It was mostly about separating my data from the code and making my modules easy to read and portable. My modules and node templates were getting insane and so hard to read (I started using puppet 0.24 so it was the only way to do it at the time apart from setting up and ENC) Nail all this to a puppetmaster with a puppetdb backend and set up foreman as an ENC and everything is lovely. Especially my node definitions which are only used for adding the occasional define and occasionally adding a module include for testing before I add it to my nodes in foreman. 1. Hiera stuff is set before everything, which fixes a lot of > scoping issues in puppet. > > 2. You can drive other tools off the Hiera YAML; you can basically > use it as an inventory system. Multiple sources of truth is *bad*. > Alternatively, you can have an inventory system generate Hiera YAML > very easily; generating well-formed puppet instructions with > reasonable flexibility is *HARD* (I've written a system to do this, > trust me). > > 3. Tweaking a YAML value means you are, in some sense at least, > tweaking *data*, but if you're messing with puppet variables you're > always messing with *code*, with all the joy that entails. > > -Robin > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
