I recommend this post on Gary Larizza's blog:

http://garylarizza.com/blog/2013/12/08/when-to-hiera/


Rich
On Wed, Sep 9, 2015 at 9:16 AM Martin Alfke <tux...@gmail.com> wrote:

> As a module developer I want to provide a module which will do sane
> defaults without forcing users to hiera.
> Module developer (at the moment) put OS and application defaults into
> params.pp.
> As a user you might want to override these defaults and specify them
> either as a parameter or via hiera.
>
> On 09 Sep 2015, at 17:47, Dan White <d_e_wh...@icloud.com> wrote:
>
> > Your observation is on target.
> > Now consider a module that has to support multiple operating systems,
> multiple locations, et cetera, ad infinitum. You can either have a whopping
> huge params.pp file that contains all the logic and possibilities, or you
> set up Hiera to pick and choose for you, completely outside of your module
> and, IMNSHO, much easier to maintain.
> >
> > On Sep 9, 2015, at 8:45 AM, Sergiu Cornea <s.cor...@my.westminster.ac.uk>
> wrote:
> >
> >> Hello guys,
> >>
> >> I was wondering if someone can explain the difference between using the
> params.pp file and Hiera, as in my opinion they achieve the same thing
> using different methods.
> >>
> >> For example, in the params.pp file you declare all or almost all the
> variables that are going to be used in your module and then call then in
> each manifest that you are using them and by using Hiera you declare the
> variables as you go in your manifest and set them using the Hiera file for
> that node.
> >>
> >> Thank you,
> >>
> >> Regards,
> >> Sergiu
> >>
> >> This message and its attachments are private and confidential. If you
> have received this message in error, please notify the sender and remove it
> and its attachments from your system.
> >>
> >> The University of Westminster is a charity and a company limited by
> guarantee. Registration number: 977818 England. Registered Office: 309
> Regent Street, London W1B 2UW.
> >>
> >>
> >> --
> >> 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/308289d5-90b4-4dfb-b9e8-6afc687fa85a%40googlegroups.com
> .
> >> For more options, visit https://groups.google.com/d/optout.
> >
> > --
> > 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/6319666A-A094-45DF-88D5-415188B60A18%40icloud.com
> .
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> 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/F8CF1CA9-F5CB-4A59-884C-CC03D960C4D1%40gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAPGcbtC9VBan7XGJB3KhYoV42aah7xYQQSKbct1UkCAEM2F_Rg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to