Jira (PUP-7096) lookup --explain can be unclear about results
Title: Message Title Eric Thompson created an issue Puppet / PUP-7096 lookup --explain can be unclear about results Issue Type: Improvement Assignee: Unassigned Created: 2017/01/12 10:24 AM Priority: Normal Reporter: Eric Thompson the puppet lookup command presents results in a strange format. YAML? no matter what backend/data format is used. also, --explain can make it unclear what the final result is, and is in a possibly different format (puppet?). [root@yfvz7smg1d39yfg ~]# puppet lookup --environment v3_config_and_data_v2q6tg7e environment_key2 Warning: /etc/puppetlabs/puppet/hiera.yaml: Use of 'hiera.yaml' version 3 is deprecated. It should be converted to version 5 (in /etc/puppetlabs/puppet/hiera.yaml)
Jira (PUP-7096) lookup --explain can be unclear about results
Title: Message Title Eric Thompson commented on PUP-7096 Re: lookup --explain can be unclear about results ping Lindsey Smith for product input on how this should work. Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- 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 post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-7096) lookup --explain can be unclear about results
Title: Message Title Thomas Hallgren commented on PUP-7096 Re: lookup --explain can be unclear about results This might boil down to a documentation issue. The output of lookup can be controlled. It's done using the option --render-as. The default when not using --explain is to output the found value as yaml. puppet lookup --render-as json environment_key2 "env value2" puppet lookup --render-as console environment_key2 env value2 The output from --explain can also be controlled using --render-as but the default output is indented text. It shows: layer (global, env, module) hierarchy entry within layer path for specific entry
Jira (PUP-7096) lookup --explain can be unclear about results
Title: Message Title Eric Thompson commented on PUP-7096 Re: lookup --explain can be unclear about results i forgot about --render-as "with --explain most of the explanation is removed" – i meant that i removed most of the --explain output in my examples to keep the example short. Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- 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 post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-7096) lookup --explain can be unclear about results
Title: Message Title Eric Thompson updated an issue Puppet / PUP-7096 lookup --explain can be unclear about results Change By: Eric Thompson the {{puppet lookup}} command presents results in a strange format.YAML? no matter what backend/data format is used.also, {{--explain}} can make it unclear what the final result is, and is in a possibly different format (puppet?).{code}[root@yfvz7smg1d39yfg ~]# puppet lookup --environment v3_config_and_data_v2q6tg7e environment_key2Warning: /etc/puppetlabs/puppet/hiera.yaml: Use of 'hiera.yaml' version 3 is deprecated. It should be converted to version 5 (in /etc/puppetlabs/puppet/hiera.yaml)--- env value2...{code}with --explain... skipping all the explanation (i removed most of its output here) , the output:{code}Merged result: "env value2"Merged result: "env value2"{code}for a more complex example with json and yaml and merges:{code}[root@yfvz7smg1d39yfg ~]# puppet lookup --environment v3_config_and_data_06dshknl environment_key4Warning: /etc/puppetlabs/puppet/hiera.yaml: Use of 'hiera.yaml' version 3 is deprecated. It should be converted to version 5 (in /etc/puppetlabs/puppet/hiera.yaml)---- jsonval: '4' val: 4{code}and with --explain with (i removed most of the explanation removed its output here) :{code} Path not foundMerged result: [ {"jsonval" => "4" }]Merged result: [ {"jsonval" => "4","val" => 4 }]{code} Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Jira (PUP-7096) lookup --explain can be unclear about results
Title: Message Title Thomas Hallgren commented on PUP-7096 Re: lookup --explain can be unclear about results @erict, do you think that documentation that explains that a) a lookup is nested (layer -> hierarchy entry -> paths), b) that the nesting is reflected by the indentation, and c) that each level is subject to merges, would help here? I can see how the output is confusing unless this nesting is known. The nesting is however happening and I'm not sure how to visualize it in a better way. Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- 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 post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-7096) lookup --explain can be unclear about results
Title: Message Title Henrik Lindberg commented on PUP-7096 Re: lookup --explain can be unclear about results Get help from UX here ? Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- 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 post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-7096) lookup --explain can be unclear about results
Title: Message Title Eric Thompson commented on PUP-7096 Re: lookup --explain can be unclear about results Lori Landesman do you have opinions on this? Thomas Hallgren i see the issues in getting around the nesting in the output. yes i can think documentation would help. Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- 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 post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-7096) lookup --explain can be unclear about results
Title: Message Title Henrik Lindberg assigned an issue to Lindsey Smith The basic issue here is that the output from --explain explains something that is quite complex. We do need to have documentation regarding how to debug hiera, and that should include understanding the output of --explain. The output could also benefit from input from UX. Puppet / PUP-7096 lookup --explain can be unclear about results Change By: Henrik Lindberg Assignee: Lindsey Smith Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- 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 post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-7096) lookup --explain can be unclear about results
Title: Message Title Henrik Lindberg assigned an issue to Lindsey Smith Puppet / PUP-7096 lookup --explain can be unclear about results Change By: Henrik Lindberg Status: Open Needs Information Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- 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 post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-7096) lookup --explain can be unclear about results
Title: Message Title Lindsey Smith commented on PUP-7096 Re: lookup --explain can be unclear about results Gary Larizza is making a pass through Hiera 5 and this would be an area where his feedback is valuable. Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- 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 post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-7096) lookup --explain can be unclear about results
Title: Message Title Branan Riley updated an issue Puppet / PUP-7096 lookup --explain can be unclear about results Change By: Branan Riley Labels: needs_decision Add Comment This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) -- 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 post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.