Re: [Puppet Users] Accessgin facts hash from manifests

2018-04-25 Thread Arnau
like: > > notify { "OS: ${facts.dig('os', 'family')} > > (or by using the "pick()" function from stdlib which is similar to "dig()") > > Best, > - henrik > > Grts >> >> >> >> >> -----Original message- >

Re: [Puppet Users] Accessgin facts hash from manifests

2018-04-25 Thread Arnau
lt;jo...@open-future.be>: > first notify, the index should be quoted > > notify { "OS: $facts['os']['family']": } > > Grts > > > > > -Original message- > *From:* Arnau <listsar...@gmail.com> > *Sent:* Friday 20th April 2018 14:22 > *To

Re: [Puppet Users] Accessgin facts hash from manifests

2018-04-23 Thread Henrik Lindberg
:* Arnau <listsar...@gmail.com> *Sent:* Friday 20th April 2018 14:22 *To:* puppet-users@googlegroups.com *Subject:* [Puppet Users] Accessgin facts hash from manifests Hi all, I'm having the first experiences with puppet 5 & facter 3 In old puppet versions I

RE: [Puppet Users] Accessgin facts hash from manifests

2018-04-23 Thread Johan De Wit
first notify, the index should be quoted notify { "OS: $facts['os']['family']": } Grts -Original message- From: Arnau <listsar...@gmail.com> Sent: Friday 20th April 2018 14:22 To: puppet-users@googlegroups.com Subject: [Puppet Users] Accessgin facts hash fr

[Puppet Users] Accessgin facts hash from manifests

2018-04-20 Thread Arnau
Hi all, I'm having the first experiences with puppet 5 & facter 3 In old puppet versions I tend to add debug messages like: notify { "OS : {::osfamily}: } and it usually worked. According to https://puppet.com/docs/puppet/5.3/lang_facts_and_ builtin_vars.html#accessing-facts-from-puppet-code