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

puppetlabs-puppet_agent : Unable to set config options with Hiera

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • None
    • puppet_agent
    • Night's Watch
    • 3
    • NW - 2021-06-30
    • Not Needed
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support