Jira (PUP-7999) Puppet Lookup should be easily used as a library in other applications

2 views
Skip to first unread message

Past Haus (JIRA)

unread,
Sep 27, 2017, 4:13:02 PM9/27/17
to puppe...@googlegroups.com
Past Haus created an issue
 
Puppet / Improvement PUP-7999
Puppet Lookup should be easily used as a library in other applications
Issue Type: Improvement Improvement
Affects Versions: PUP 5.0.0
Assignee: Thomas Hallgren
Components: Hiera & Lookup
Created: 2017/09/27 1:12 PM
Priority: Normal Normal
Reporter: Past Haus

Currently in PE, the pe_infrastructure and pe_manager modules end up recreated a large amount of the puppet lookup application logic to do lookups without shelling out to puppet (which would be expensive). It would be far better if puppet itself exposed the lookup as an easy to use method for other applications. Ideally, if I knew the node name, environment name, and a list of keys to lookup, I should be able to invoke the method to retrieve those lookups.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Henrik Lindberg (JIRA)

unread,
Sep 28, 2017, 4:47:02 PM9/28/17
to puppe...@googlegroups.com
Henrik Lindberg commented on Improvement PUP-7999
 
Re: Puppet Lookup should be easily used as a library in other applications

We have been working on the Puppet::Pal API ("Puppet as-a Library) for the purpose of making it easy to do "puppety" things with a degree of separation between the caller and "puppet". We could add "lookup" to that API as well. The API already has various ways to define the environment and node to operate on.

With lookup in general, there is the question if such an API should return the exact same values as would be looked up during compilation, or/and if it should be possible to also give it a separate hierarchy for other purposes than "compiling for a node".

Thomas Hallgren (JIRA)

unread,
Oct 26, 2017, 7:12:03 AM10/26/17
to puppe...@googlegroups.com
Thomas Hallgren assigned an issue to Unassigned
 
Change By: Thomas Hallgren
Assignee: Thomas Hallgren

Thomas Hallgren (JIRA)

unread,
Oct 26, 2017, 7:12:03 AM10/26/17
to puppe...@googlegroups.com
Thomas Hallgren commented on Improvement PUP-7999
 
Re: Puppet Lookup should be easily used as a library in other applications

A specification is needed in order to act on this ticket.

Eric Sorenson (JIRA)

unread,
Nov 6, 2017, 5:44:02 PM11/6/17
to puppe...@googlegroups.com
Eric Sorenson commented on Improvement PUP-7999

It should look up the same thing as you'd get from the command line or from inside Puppet, using an on-disk hierarchy.

This seems pretty useful but it's hard to tell whether it would be used widely enough to be worth the effort.

This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db)
Atlassian logo

Josh Cooper (JIRA)

unread,
Nov 6, 2017, 8:19:04 PM11/6/17
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Jun 5, 2020, 6:42:03 PM6/5/20
to puppe...@googlegroups.com
Josh Cooper commented on Improvement PUP-7999
 
Re: Puppet Lookup should be easily used as a library in other applications

I'm going to close this due to lack of activity. Please reopen if this is still needed.

This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages