> an email to puppet...@googlegroups.com
> <mailto:puppet-users+unsub...@googlegroups.com>.
Hello,
I see you are looking for 'match_address', but in Hiera it is stored as 'sshdconfig::match_address'.
-----Original message-----
From: Dan Crisp <djc...@gmail.com>
Sent: Tuesday 25th February 2020 13:42
To: Puppet Users <puppet...@googlegroups.com>
Subject: Re: [Puppet Users] Hiera Setup Lookup Complaining
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:
"nodename.domain.com" never checked in with the puppet server to deposit
any facts. It will do that on its first agent run though.
Meanwhile you have to supply your own facts (and trusted) to do lookups
as it will be done when the node later requests a catalog. Look at the
help for the various flags to the lookup command to learn how to give it
values for facts and trusted information.
- henrik
--
Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/51b5a4bd-0e18-42c9-8cc3-9b77bcfd4218%40googlegroups.com.
> an email to puppet...@googlegroups.com
> <mailto:puppet-users+unsub...@googlegroups.com>.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet...@googlegroups.com.
Hello,
What you have in Hiera is the following:
---
sshdconfig:
match_address: "xx.xx.xx.xx"
permit_root_login: without-password
This is a single key sshdconfig with the value:
{
"match_address" => "xx.xx.xx.xx",
"permit_root_login" => "without-password"
}
If you want to use the contents of match_address in your Puppet code, you would need to lookup sshdconfig and then access $sshconfig['match_address'], or rewrite your yaml into something like:
---
sshdconfig::match_address: "xx.xx.xx.xx"
sshdconfig::permit_root_login: without-password
Where you can lookup sshdconfig::match_address
As you've already noted, this naming convention is most appropriate for a module sshdconfig. If there is such a module, its parameters match_address and permit_root_login would be automatically looked up in Hiera.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/b14bdcca-7a45-45b7-9045-749c6633ae0e%40googlegroups.com.
> > <mailto:puppet-users+unsub...@googlegroups.com <javascript:>>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/puppet-users/51b5a4bd-0e18-42c9-8cc3-9b77bcfd4218%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/51b5a4bd-0e18-42c9-8cc3-9b77bcfd4218%40googlegroups.com>
>
> >
> <https://groups.google.com/d/msgid/puppet-users/51b5a4bd-0e18-42c9-8cc3-9b77bcfd4218%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/puppet-users/51b5a4bd-0e18-42c9-8cc3-9b77bcfd4218%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
>
>
> --
>
> Visit my Blog "Puppet on the Edge"
> http://puppet-on-the-edge.blogspot.se/
> <http://puppet-on-the-edge.blogspot.se/>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to puppet...@googlegroups.com
> <mailto:puppet-users+unsub...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/b14bdcca-7a45-45b7-9045-749c6633ae0e%40googlegroups.com.
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
--
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
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!