[Puppet Users] Hiera Setup Lookup Complaining

2020-02-24 Thread Dan Crisp
Hello all, Strugling to get started with Hiera (all new to me): # more /etc/puppetlabs/puppet/hiera.yaml --- *# Hiera 5 Global configuration file* version: 5 # defaults: # data_hash: yaml_data # hierarchy: # - name: Common #data_hash: yaml_data hierarchy: [] # more environments/producti

Re: [Puppet Users] Hiera Setup Lookup Complaining

2020-02-24 Thread Henrik Lindberg
On 2020-02-24 17:06, Dan Crisp wrote: Hello all, Strugling to get started with Hiera (all new to me): First glance that looks ok, as you can see it is not finding your key in any of the resulting paths. From where (which data file) was it supposed to find the key you looked up? Best, - hen

Re: [Puppet Users] Hiera Setup Lookup Complaining

2020-02-24 Thread Dan Crisp
Hello Henrik, thanks for your reply. This file: environment/production/data/nodes/nodename.domain.com.yaml On Monday, February 24, 2020 at 4:26:37 PM UTC, Henrik Lindberg wrote: > > On 2020-02-24 17:06, Dan Crisp wrote: > > Hello all, > > > > Strugling to get started with Hiera (all new to m

Re: [Puppet Users] Hiera Setup Lookup Complaining

2020-02-24 Thread Henrik Lindberg
Dan Crisp wrote: environment/production/data/nodes/nodename.domain.com.yaml As you can see in the output - the hiera path expanded to: Path "/etc/puppetlabs/code/environments/production/data/nodes/.yaml" Meaning that trusted.certname was empty. It would be empty if the node "nodename.domai

Re: [Puppet Users] Hiera Setup Lookup Complaining

2020-02-25 Thread Dan Crisp
I included the --compile option. Now (not sure whether as a result of use --option) I can see /etc/puppetlabs/code/environments/production/data/nodes/nodename.domain.com.yaml in the output: Searching for "lookup_options" Global Data Provider (hiera configuration version 5) No such key:

Re: [Puppet Users] Hiera Setup Lookup Complaining

2020-02-25 Thread Henrik Lindberg
On 2020-02-25 13:42, Dan Crisp wrote: I included the --compile option.  Now (not sure whether as a result of use --option) I can see/etc/puppetlabs/code/environments/production/data/nodes/nodename.domain.com.yaml in the output: Probably because you got a run done by the agent? Anyway - firs

RE: [Puppet Users] Hiera Setup Lookup Complaining

2020-02-25 Thread Bart-Jan Vrielink
Hello, I see you are looking for 'match_address', but in Hiera it is stored as 'sshdconfig::match_address'. -Original message- From: Dan Crisp  Sent: Tuesday 25th February 2020 13:42 To: Puppet Users Subject: Re: [Puppet Users] Hiera Setup Lookup Complai

Re: [Puppet Users] Hiera Setup Lookup Complaining

2020-02-25 Thread Dan Crisp
This is what I have: --- sshdconfig: match_address: "xx.xx.xx.xx" permit_root_login: without-password YAML Lint validates the YAML ok. However, it doesn't matter what I put in this file (Non YAML or a bunch of random characters ) the result is the same so I suspect it's not being read. Ho

Re: [Puppet Users] Hiera Setup Lookup Complaining

2020-02-25 Thread Dan Crisp
;match_address', but in Hiera it is stored as > 'sshdconfig::match_address'. > > > -Original message- > *From:* Dan Crisp > > *Sent:* Tuesday 25th February 2020 13:42 > *To:* Puppet Users > > *Subject:* Re: [Puppet Users] Hiera

RE: [Puppet Users] Hiera Setup Lookup Complaining

2020-02-26 Thread Bart-Jan Vrielink
be automatically looked up in Hiera.   -Original message- From: Dan Crisp  Sent: Tuesday 25th February 2020 16:59 To: Puppet Users Subject: Re: [Puppet Users] Hiera Setup Lookup Complaining Hello Bart, Thanks for your reply.  Yes that threw me also.  I was originally looking for s

Re: [Puppet Users] Hiera Setup Lookup Complaining

2020-02-26 Thread Henrik Lindberg
On 2020-02-25 16:51, Dan Crisp wrote: This is what I have: --- sshdconfig:   match_address: "xx.xx.xx.xx"   permit_root_login: without-password YAML Lint validates the YAML ok. However, it doesn't matter what I put in this file (Non YAML or a bunch of random characters ) the result is the s

Re: [Puppet Users] Hiera Setup Lookup Complaining

2020-02-26 Thread Dan Crisp
Look all good to me: puppet@puppet:/etc/puppetlabs/puppet$ ls -ltr total 40 -rw-r--r--. 1 puppet puppet 5487 Sep 23 22:22 auth.conf -rw-r--r--. 1 puppet puppet 657 Sep 24 12:17 puppet.conf drwxrwx--x. 1 puppet puppet 4096 Sep 27 16:22 ssl drwxr-x---. 2 puppet puppet 4096 Sep 27 22:32 devices -rw

Re: [Puppet Users] Hiera Setup Lookup Complaining

2020-02-26 Thread Dan Crisp
ould be automatically looked up in Hiera. > > > > > > -Original message- > *From:* Dan Crisp > > *Sent:* Tuesday 25th February 2020 16:59 > *To:* Puppet Users > > *Subject:* Re: [Puppet Users] Hiera Setup Lookup Complaining > > Hello Bart, &g

Re: [Puppet Users] Hiera Setup Lookup Complaining

2020-02-26 Thread Becca Robinson
Hi Dan, I see that you have this `puppet lookup match_address --node nodename.domain.com.yaml —explain` . Might want to ditch the .yaml from the node name. -- Becca Robinson Senior Professional Services Engineer be...@puppet.com | @_itgrl_ cell: (913) 752-7084 Puppet

Re: [Puppet Users] Hiera Setup Lookup Complaining

2020-02-29 Thread Dan Crisp
Thanks all. Have this working now. On Wednesday, February 26, 2020 at 4:04:34 PM UTC, Becca Robinson wrote: > > Hi Dan, > > I see that you have this `puppet lookup match_address --node > nodename.domain.com.yaml —explain` . > > Might want to ditch the .yaml from the node name. > > -- > *Becca

Re: [EXTERNAL] - Re: [Puppet Users] Hiera Setup Lookup Complaining

2020-03-03 Thread Dirk Heinrichs
Am Mittwoch, den 26.02.2020, 05:57 -0800 schrieb Dan Crisp: sshdconfig::match_address: "xx.xx.xx.xx" Just to clarify: Is "puppet lookup" supposed to find "sshdconfig::match_address" when only "match_address" was given? Bye... Dirk -- Dirk Heinrichs Senior Systems Engineer, Deliver

Re: [EXTERNAL] - Re: [Puppet Users] Hiera Setup Lookup Complaining

2020-03-03 Thread Martin Alfke
Hi, > > Am Mittwoch, den 26.02.2020, 05:57 -0800 schrieb Dan Crisp: > >> sshdconfig::match_address: "xx.xx.xx.xx" > > Just to clarify: Is "puppet lookup" supposed to find > "sshdconfig::match_address" when only "match_address" was given No! Hiera looks for a string based key, not regex. You

Re: [EXTERNAL] - Re: [Puppet Users] Hiera Setup Lookup Complaining

2020-03-03 Thread Dirk Heinrichs
Am Dienstag, den 03.03.2020, 11:14 +0100 schrieb Martin Alfke: sshdconfig::match_address: "xx.xx.xx.xx" Just to clarify: Is "puppet lookup" supposed to find "sshdconfig::match_address" when only "match_address" was given No! That was my thought, too. So the "puppet lookup" command (see first