On 2020-08-01 16:31, Dan Crisp wrote:
Hello Henrik,
Do you have a hunch to why this is not working?
Don't really have the time to dig in at the detail level.
You already got the advice to use the command line 'puppet lookup' with
--explain option turned on to see how hiera resolves the
Yes I upated the site.pp as recommended.
On Friday, July 31, 2020 at 6:41:24 PM UTC+1, A Manzer wrote:
>
> Did you update site.pp to use the include syntax?
>
> I looked at the error again, because I'm really not sure why it's working
> (other than the fact that you've mixed patterns, and
Hello Henrik,
Do you have a hunch to why this is not working?
Thanks,
Dan.
On Friday, July 31, 2020 at 7:40:22 PM UTC+1, Henrik Lindberg wrote:
>
> On 2020-07-31 19:41, A Manzer wrote:
> > Did you update site.pp to use the include syntax?
>
> That is not needed to make automatic parameter
On 2020-07-31 19:41, A Manzer wrote:
Did you update site.pp to use the include syntax?
That is not needed to make automatic parameter lookup to work.
- henrik
--
Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/
--
You received this message because you are
Did you update site.pp to use the include syntax?
I looked at the error again, because I'm really not sure why it's working
(other than the fact that you've mixed patterns, and seriously
over-complicated your code). So here's your error, right?
Error: Could not retrieve catalog from remote
Don't think it's a hiera issue now:
# puppet lookup permitroot::permitroot_config --node
lhcsrvprdcms01.fixnetix.com
---
- Match Address xx.xx.xx.xx
- PermitRootLogin without-password
# pwd
/etc/puppetlabs/code/environments/production/data/nodes
# cat *
permitroot::permitroot_config:
-
puppet lookup is a good diagnostic tool.
Now though, you have a naming issue. You need the permitroot:: prefix if
you want Puppet/Hiera to automatically fill in your parameter.
So your puppet lookup debug command should be puppet lookup
permitroot::permitroot_config --explain --node
Still no luck. Hiera is now matching (it wasn't before):
root@puppet:/# puppet lookup permitroot_config --node
lhcsrvprdcms01.fixnetix.com
---
- Match Address xx.xx.xx.xx
- PermitRootLogin without-password
I had to change the YAML file slightly to:
permitroot_config:
- 'Match Address
I've noticed two other things that may need fixing:
- It may be a copy and paste error, but you don't close your Match Address
string in the pasted Hiera file above. That would cause your Yaml to be
incorrect, and probably ignored.
- In site.pp, you use the resource-like syntax for including
Thanks for the reply.
Unfortunately although my YAML file didn't have the .yaml suffix and I
didn't have a data directory, after making the necessary changes, the same
problem persists:
Error: Could not retrieve catalog from remote server: Error 500 on SERVER:
Server Error: Evaluation Error:
You need to put your nodes hiera folder under a data folder. (*All* your
hiera data goes under a data folder.)
Also, ensure that your yaml file is named lhcsrvprdcms01.domain.com.yaml.
You need the *full* node name, *and* the .yaml at the end for hiera to find
it. That's tripped me up a few
11 matches
Mail list logo