Jira (PUP-10151) Man page `lookup` needs clarification

32 views
Skip to first unread message

Jean Bond (JIRA)

unread,
Nov 22, 2019, 1:26:03 PM11/22/19
to puppe...@googlegroups.com
Jean Bond created an issue
 
Puppet / Improvement PUP-10151
Man page `lookup` needs clarification
Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 2019/11/22 10:25 AM
Labels: feedback-form-docs-site puppet
Priority: Normal Normal
Reporter: Jean Bond

We received some docs feedback about the man page for `lookup`. This might be missing information, or it might be vague, buried, or just not explicit.

Url: /docs/puppet/latest/man/lookup.html
Message:
The problem with the lookup function is that it does not document where it
will start looking for the facts. I.e. which puppet.conf, hiera.yaml etc to
use. This makes it a lot harder to use.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Henrik Lindberg (JIRA)

unread,
Nov 24, 2019, 6:52:04 AM11/24/19
to puppe...@googlegroups.com
Henrik Lindberg commented on Improvement PUP-10151
 
Re: Man page `lookup` needs clarification

The man page assumes it is understood how hiera works in combination with a puppet configuration, and environment and node.
Lookup uses the setting for global hiera.yaml from puppet's config, and the environment to find the environment level hiera.yaml as well as the resulting modulepath for the environment (for hiera.yaml files in modules).

If it is given a node, the information for that node is looked up, and it will use the environment that was used for that node. The environment can also be given on the command line, and if neither is given it probably defaults to "production". If a node is not given facts generally must be given on the command line since most hiera.yaml files are based on interpolating facts.

(Note that there is a ticket about the node's environment to use, if it should be the one that was reported last, or the one that a node will be given on the next compilation.)

So, in summary it is something like: use the --node option, or specify facts and environment on the command line.

Josh Cooper (Jira)

unread,
May 13, 2020, 8:51:03 PM5/13/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
 
Change By: Josh Cooper
Epic Link: PUP-6870
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Josh Cooper (Jira)

unread,
May 13, 2020, 8:58:02 PM5/13/20
to puppe...@googlegroups.com
Josh Cooper commented on Improvement PUP-10151
 
Re: Man page `lookup` needs clarification

The current behavior is near to impossible to understand because lookup loads facts differently in compile mode or not. Also it load a facts file *after* the environment has been loaded (PUP-10435) which means if facts are used for classification, the environment may be incorrect. I added this to the lookup epic, and we should ensure the facts behavior is clear.

Josh Cooper (Jira)

unread,
May 13, 2020, 9:12:03 PM5/13/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Sprint: Coremunity Hopper

Josh Cooper (Jira)

unread,
Jul 30, 2020, 12:56:04 PM7/30/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Component/s: Docs

Josh Cooper (Jira)

unread,
May 3, 2021, 2:08:03 PM5/3/21
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Epic Link: PUP- 6870 11052
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Josh Cooper (Jira)

unread,
Aug 3, 2021, 6:13:04 PM8/3/21
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Sprint: Coremunity Hopper , Community PRs 2

Ciprian Badescu (Jira)

unread,
Oct 6, 2021, 4:40:02 AM10/6/21
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Change By: Ciprian Badescu
Sprint: NW - 2021-10-20

Ciprian Badescu (Jira)

unread,
Oct 6, 2021, 5:14:02 AM10/6/21
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Change By: Ciprian Badescu
Sprint: NW - 2021-11-03

Ciprian Badescu (Jira)

unread,
Oct 20, 2021, 4:08:03 AM10/20/21
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
Oct 27, 2021, 3:47:02 AM10/27/21
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Change By: Ciprian Badescu
Sprint: NW - 2021-11-03

Ciprian Badescu (Jira)

unread,
Oct 27, 2021, 3:47:02 AM10/27/21
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Change By: Ciprian Badescu
Sprint: ready for triage

Ciprian Badescu (Jira)

unread,
Oct 29, 2021, 5:10:03 AM10/29/21
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Change By: Ciprian Badescu
Sprint: ready for triage NW - 2021-11-17

Victor Bobosila (Jira)

unread,
Nov 15, 2021, 1:09:02 AM11/15/21
to puppe...@googlegroups.com
Victor Bobosila assigned an issue to Victor Bobosila
Change By: Victor Bobosila
Assignee: Victor Bobosila

Ciprian Badescu (Jira)

unread,
Nov 17, 2021, 4:14:03 AM11/17/21
to puppe...@googlegroups.com
Ciprian Badescu updated an issue
Change By: Ciprian Badescu
Sprint: NW - 2021-11-17 , NW - 2021-12-06

Josh Cooper (Jira)

unread,
Nov 29, 2021, 8:29:02 PM11/29/21
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Nov 29, 2021, 8:30:02 PM11/29/21
to puppe...@googlegroups.com
Josh Cooper updated an issue
 
Change By: Josh Cooper
Fix Version/s: PUP 6.26.0
Fix Version/s: PUP 7.13.0

Josh Cooper (Jira)

unread,
Nov 29, 2021, 8:30:03 PM11/29/21
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Release Notes: Not Needed
Reply all
Reply to author
Forward
0 new messages