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
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