Jira (PUP-8593) Add alias to lookup_options and make it redirect to lookup of the alias
Title: Message Title Maggie Dreyer updated an issue Puppet / PUP-8593 Add alias to lookup_options and make it redirect to lookup of the alias Change By: Maggie Dreyer Component/s: Hiera & Lookup Add Comment This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.242722.1521802594000.178709.1617211560037%40Atlassian.JIRA.
Jira (PUP-8593) Add alias to lookup_options and make it redirect to lookup of the alias
Title: Message Title Thomas Hallgren commented on PUP-8593 Re: Add alias to lookup_options and make it redirect to lookup of the alias Not sure why that is. The only thing that the current alias doesn't, is to propagate the "not-found" condition. It preserves the type and it guards against recursion. Perhaps I'm missing something but besides the "advanced features" (which I personally think we should avoid), I don't see more value added here. Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.242722.1521802594000.3263.1580239260216%40Atlassian.JIRA.
Jira (PUP-8593) Add alias to lookup_options and make it redirect to lookup of the alias
Title: Message Title Henrik Lindberg commented on PUP-8593 Re: Add alias to lookup_options and make it redirect to lookup of the alias Thomas Hallgren That is solving PUP-8341, a completely different problem than this ticket (what is described above would also benefit from having some kind of "strict" option). I think PUP-8341 should be reopened for the purpose of adding strict_alias interpolation function. This ticket is about having a more powerful mechanism for aliasing than what is currently possible with the hiera interpolation functions. Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.242722.1521802594000.3237.1580238240107%40Atlassian.JIRA.
Jira (PUP-8593) Add alias to lookup_options and make it redirect to lookup of the alias
Title: Message Title Thomas Hallgren commented on PUP-8593 Re: Add alias to lookup_options and make it redirect to lookup of the alias A simpler, and perhaps more straight forward solution that was proposed in PUP-8341, is to introduce an additional interpolation function. This has already been done in the Go version of Hiera. The function is called `strict_alias` and behaves like `alias` with the exception that a not found is propagated instead of translated into an empty string. Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.242722.1521802594000.3121.1580236440635%40Atlassian.JIRA.
Jira (PUP-8593) Add alias to lookup_options and make it redirect to lookup of the alias
Title: Message Title Henrik Lindberg created an issue Puppet / PUP-8593 Add alias to lookup_options and make it redirect to lookup of the alias Issue Type: New Feature Assignee: Unassigned Created: 2018/03/23 3:56 AM Priority: Normal Reporter: Henrik Lindberg The existing hiera interpolation function alias is problematic to use. By adding a key alias in lookup_options for an original-key a lookup should take that alias-key and use it to lookup instead of the given original-key. Details: The implementation must guard against circular aliases There is an option wrt handling of the other lookup_options: Use the options for original-key and ignore those in alias-key ignore the options for original-key and use those for the alias-key merge the options with original-key at higher t If an alias-key is in turn aliased, the process recurses Option 3 allows for just specifying alias and getting the rest of the options from the aliased key. We can also add advanced features: If the alias-key is an array, the entries in that array are used as aliased lookups and the result is an array with those values. If the alias-key is a hash, the keys are used as keys in the resulting hash where values are the looked up keys