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.

Reply via email to