Skip to content

inputs_extra_scripts_defaults not deep merging correctly #16

Description

@inwho

Something about the way ::inputs_extra_scripts_defaults is setup is causing deep merges to fail if the parameter is specified with a different script in the control repo.

I.e. by default all hosts create "/etc/telegraf/scripts/mount-state.sh" without issue, but any hosts with a ::inputs_extra_scripts_defaults parameter only create scripts from that parameter (and not the mount-state script as one would also expect from a deep merge).

The related config files (::inputs_extra) merge/create without issue.

Behavior observed on Magnus with the following merge settings

  profile_monitoring::telegraf::input_extra_scripts:
    merge:
      strategy: "deep"
      merge_hash_arrays: true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions