Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-7096

lookup --explain can be unclear about results

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • QA Risk Assessment:
      Needs Assessment

      Description

      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)
          --- env value2
          ...
      

      with --explain... (i removed most of its output here), the output:

              Merged result: "env value2"
          Merged result: "env value2"
      

      for a more complex example with json and yaml and merges:

          [root@yfvz7smg1d39yfg ~]# puppet lookup --environment v3_config_and_data_06dshknl environment_key4
          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)
          ---
          - jsonval: '4'
            val: 4
      

      and with --explain (i removed most of its output here):

                Path not found
              Merged result: [
                {
                  "jsonval" => "4"
                }
              ]
          Merged result: [
            {
              "jsonval" => "4",
              "val" => 4
            }
          ]
      

        Attachments

          Activity

            People

            • Assignee:
              l.smith Lindsey Smith
              Reporter:
              erict Eric Thompson
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support