[Puppet Users] hiera style guide

2017-09-28 Thread Georg Faerber
Hi all, Searching the Internets didn't reveal anything: Is there some style guide or best practice regarding syntax used in hiera, writing .yaml files? For example, should it be: array: - string - string or array: - 'string' - 'string' Thanks in advance, all the best, Georg -- You

[Puppet Users] Re: Question regarding Puppet4 class params and Hiera5

2017-09-28 Thread Sean
John, I have no disagreement with your statements. I've never done object oriented programming professionally, and only dabbled with java to learn some basics, so I guess I don't have as much bias in that regard...I really thought I was just going with the terminology flow. The complexity

Re: [Puppet Users] Re: stdlib keys() and values()

2017-09-28 Thread Robert
Hey John, I've just found out that notice() gives back the array indeed. Thanks for clarifying that, I didn't know this until now and was really confused :) Best, Rp On Thu, Sep 28, 2017 at 3:02 PM, jcbollinger wrote: > > > On Thursday, September 28, 2017 at

[Puppet Users] Re: Question regarding Puppet4 class params and Hiera5

2017-09-28 Thread jcbollinger
Dear Sean, David has already given you great answers to the questions you posed. I have nothing to add to those, but I feel inclined to nitpick your question a bit: On Tuesday, September 26, 2017 at 10:00:49 AM UTC-5, Sean wrote: [...] > The class arrays are strings of fully qualified

[Puppet Users] Re: stdlib keys() and values()

2017-09-28 Thread jcbollinger
On Thursday, September 28, 2017 at 5:49:12 AM UTC-5, Robert wrote: > > Eh, sorry. > > So why's this with the above code: > > Notice: /Stage[main]/Main/Notify[sdf]/message: defined 'message' as '1' > and keys($hash) gives 'a' > > Why not arrays of the keys / values? Can't understand. > Although

[Puppet Users] custom resource type property to accept hash for input

2017-09-28 Thread Harihara Narayanan B
Does puppet allow to create a custom resource property to accept hash inputs, instead of arrays? Cant find this in the documentation. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails

[Puppet Users] Puppet masters switch cert issues

2017-09-28 Thread Induja Vijayaraghavan
I am moving from RHEL 6 to RHEL 7 puppet master. The new one is all set and ready to go. DNS name is also updated to have the new master. We have 300 + nodes to be migrated from old puppet master to the new master. What is the easiest way to move the certificates from the old master to the new

[Puppet Users] Re: stdlib keys() and values()

2017-09-28 Thread Robert
Eh, sorry. So why's this with the above code: Notice: /Stage[main]/Main/Notify[sdf]/message: defined 'message' as '1' and keys($hash) gives 'a' Why not arrays of the keys / values? Can't understand. Thanks Rp On Thu, Sep 28, 2017 at 12:44 PM, Robert wrote: > Hello List,

[Puppet Users] stdlib keys() and values()

2017-09-28 Thread Robert
Hello List, I can't think of a more basic question, but... $hash = {'a'=>1, 'b'=>2, 'c'=>3} notify { "sdf": message => values($hash), } -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving