Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-11077

puppetlabs-puppet_agent : Unable to set config options with Hiera

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: puppet_agent
    • Labels:
    • Template:
      MODULES Bug Template
    • Team:
      Night's Watch
    • Story Points:
      3
    • Sprint:
      NW - 2021-06-30
    • Release Notes:
      Not Needed
    • QA Risk Assessment:
      Needs Assessment

      Description

      Basic Info
      Module Version: 4.7.0**
      Puppet Version: 6.21.1
      OS Name/Version: Various

      Unable to use Hiera when trying to set puppet agent config parameters

      Example:

      puppet_agent::config:
          - section: main
            setting: splay
            value: 'true'
          - section: main
            setting: runtimeout
            value: 8h

       

      Desired Behavior:

      Need a way to set puppet agent configuration options using Hiera. I'm unable to find an equivalent in YAML that satifies the Puppet_agent::Config data type

      Actual Behavior:

      Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, Class[Puppet_agent]: parameter 'config' index 1 expects a Puppet_agent::Config = Variant[Struct[{'section' => Enum['agent', 'main', 'master', 'server', 'user'], 'setting' => Puppet_agent::Config_setting = Enum['environment', 'http_connect_timeout', 'http_read_timeout', 'log_level', 'runinterval', 'show_diff', 'splay', 'splaylimit', 'usecacheonfailure'], 'value' => String, Optional['ensure'] => Enum['absent', 'present']}], Struct[{'section' => Enum['agent', 'main', 'master', 'server', 'user'], 'setting' => Puppet_agent::Config_setting = Enum['environment', 'http_connect_timeout', 'http_read_timeout', 'log_level', 'runinterval', 'show_diff', 'splay', 'splaylimit', 'usecacheonfailure'], Optional['ensure'] => Enum['absent']}]] value, got Struct (file: /etc/puppetlabs/code/environments/production/manifests/site.pp, line: 56, column: 5)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gabriel.nagy Gabriel Nagy
              Reporter:
              mluck94 Michael Luck
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support