Re: [Puppet Users] how to use external facts in a template?

2017-01-25 Thread Sans
Hi Henrik, Thanks for commenting. Could you elaborate "Only reference Facter in logic that implements facts" pls? Does it mean when defining, e.g. a custom-fact, it's okay to reference another fact but not anywhere else? People gave me so many advice about dos and don'ts but no one actually

Re: [Puppet Users] how to use external facts in a template?

2017-01-25 Thread Henrik Lindberg
On 25/01/17 20:20, Sans wrote: On Wednesday, January 25, 2017 at 7:05:03 PM UTC, R.I. Pienaar wrote: only if you enable structured facts and have a new facter Well, it's not "structured" i.e. it returns only a string. and didn't work as expected. It also an "external fact", not sure

Re: [Puppet Users] how to use external facts in a template?

2017-01-25 Thread R.I.Pienaar
On Wed, Jan 25, 2017, at 08:20 PM, Sans wrote: > > > On Wednesday, January 25, 2017 at 7:05:03 PM UTC, R.I. Pienaar wrote: >> >> >> only if you enable structured facts and have a new facter > > Well, it's not "structured" i.e. it returns only a string. and didn't > work as

Re: [Puppet Users] how to use external facts in a template?

2017-01-25 Thread Sans
On Wednesday, January 25, 2017 at 7:05:03 PM UTC, R.I. Pienaar wrote: > > > > only if you enable structured facts and have a new facter > Well, it's not "structured" i.e. it returns only a string. and didn't work as expected. It also an "external fact", not sure if that's the main issue.

[Puppet Users] Contributor Summit EU Feb. 8 - after ConfigMgmt Camp

2017-01-25 Thread Meg Hartley
Hi Folks, You're invited to Contributor Summit EU on 8 February, the day after ConfigManagement Camp in Ghent. It's a great opportunity to work with other Puppet folks and add more learning to your ConfigMgmt Camp experience. Registration and more information:

Re: [Puppet Users] how to use external facts in a template?

2017-01-25 Thread R.I.Pienaar
- Original Message - > From: "Sans" > To: "puppet-users" > Sent: Wednesday, 25 January, 2017 20:01:20 > Subject: Re: [Puppet Users] how to use external facts in a template? > On Wednesday, January 25, 2017 at 2:20:30 PM UTC, R.I.

Re: [Puppet Users] how to use external facts in a template?

2017-01-25 Thread Sans
On Wednesday, January 25, 2017 at 2:20:30 PM UTC, R.I. Pienaar wrote: > > > not been following, but if you're on a recent version @facts["foo"] is the > best > I didn't know that but will check soon. I'm on v3.8.x - will it work there? -S -- You received this message because you are

[Puppet Users] Re: Using notify with concat module...

2017-01-25 Thread Sean
Thank you for the reply! On Tuesday, January 24, 2017 at 4:42:10 AM UTC-5, Luke Bigum wrote: > > > > On Monday, 23 January 2017 20:55:44 UTC, Sean wrote: >> >> Hello, >> >> I was reading over several threads regarding the use of concat modules >> and subscribe capabilities. It seems everyone is

Re: [Puppet Users] how to use external facts in a template?

2017-01-25 Thread R.I.Pienaar
- Original Message - > From: "Sans" > To: "puppet-users" > Sent: Wednesday, 25 January, 2017 15:17:19 > Subject: Re: [Puppet Users] how to use external facts in a template? >> Hi Sans, >> >> I think your ERB syntax may be off.

Re: [Puppet Users] how to use external facts in a template?

2017-01-25 Thread Sans
> Hi Sans, > > I think your ERB syntax may be off. Here's an example doing something > similar. Instead of Facter.value() just put an @ in front of the fact > name. > > <% @nameservers.each do |nameserver| -%> > nameserver <%= nameserver %> > <% end -%> > > Best regards, > -g > >

Re: [Puppet Users] how to use external facts in a template?

2017-01-25 Thread Garrett Honeycutt
On 1/25/17 6:43 AM, Sans wrote: > Dear all, > I'm having this issue and running out of ideas. > I have this two external facts (defined in > /etc/facter/facts.d/extn_git_facts.txt): > > | > > root@p19-d-pmaster-001:~# facter|grep ks_git > ks_git_puppet-hiera =>master >

[Puppet Users] how to use external facts in a template?

2017-01-25 Thread Sans
Dear all, I'm having this issue and running out of ideas. I have this two external facts (defined in /etc/facter/facts.d/extn_git_facts.txt): root@p19-d-pmaster-001:~# facter|grep ks_git ks_git_puppet-hiera => master ks_git_puppet-master => develop I want to use these