Re: [Puppet Users] Puppet4 $facts syntax

2017-03-10 Thread Poil
@all, thanks :) Le 10/03/2017 à 14:10, R.I.Pienaar a écrit : On Fri, Mar 10, 2017, at 14:06, Dirk Heinrichs wrote: Am 10.03.2017 um 14:02 schrieb R.I.Pienaar: the first is just wrong OTOH, I mostly use $::facts['fact_name']. this is not needed. The reason you use $::foo is because of the

Re: [Puppet Users] Puppet4 $facts syntax

2017-03-10 Thread Dirk Heinrichs
On 10.03.2017 14:10, R.I.Pienaar wrote: > You can never cause the problem that raised the need for $::facts to > exist, you can just use $facts and it's all sweet and > In general with Puppet 4 the needs for all the :: stuff is almost all gone Ah, good to know. Thanks for clarifying. Bye...

Re: [Puppet Users] Puppet4 $facts syntax

2017-03-10 Thread R.I.Pienaar
On Fri, Mar 10, 2017, at 14:06, Dirk Heinrichs wrote: > Am 10.03.2017 um 14:02 schrieb R.I.Pienaar: > > > the first is just wrong > > OTOH, I mostly use $::facts['fact_name']. this is not needed. The reason you use $::foo is because of the problem here: $foo = "top" class x($foo="class")

Re: [Puppet Users] Puppet4 $facts syntax

2017-03-10 Thread Dirk Heinrichs
Am 10.03.2017 um 14:02 schrieb R.I.Pienaar: > the first is just wrong OTOH, I mostly use $::facts['fact_name']. Bye... Dirk -- *Dirk Heinrichs* Senior Systems Engineer, Delivery Pipeline OpenText^TM Discovery | Recommind *Email*: dirk.heinri...@recommind.com

Re: [Puppet Users] Puppet4 $facts syntax

2017-03-10 Thread R.I.Pienaar
On Fri, Mar 10, 2017, at 13:05, Poil wrote: > Hi, > > In the style guide we have $facts[::operatingsystem] > > In all others documentation we have $facts['fact_name'] > > So which one is the good one ? Do we really need to scope inside > $facts[::scope] Easily answered: % puppet apply -e

[Puppet Users] Puppet4 $facts syntax

2017-03-10 Thread Poil
Hi, In the style guide we have $facts[::operatingsystem] In all others documentation we have $facts['fact_name'] So which one is the good one ? Do we really need to scope inside $facts[::scope] ? Best regards, -- You received this message because you are subscribed to the Google Groups "Pup