Skip to content

HDM should be able to read global hiera data #330

Closed
@tuxmea

Description

Discussed in #299

Originally posted by tuxmea February 15, 2024
In some environments, the global hiera data is used (/etc/puppetlabs/puppet/hiera.yaml)
HDM should be able to also show global data.

Workflow in HDM:

  • select environment
  • select node
  1. Global data:

HDM now reads the global hiera.yaml file, replaces the facts and finds the yaml files for the node and collects all Hiera keys.
The global hiera.yaml file may be absent. It should only be taken into account if it has a hierarchy key.

  1. Environment data:

HDM reads the environment hiera.yaml file, replaces the facts and finds the yaml files for the node and collects all Hiera keys.

  1. Select a key

When selecting a Hiera key, HDM should show the global directory/file structure similar to environment data on top of the environment data.
Global data and environment data views are each have a border around to visualize that these are different data sources.

  1. Show result

Show result must first parse global data and environment data afterwards.
lookup_options are dealt in the same way as single environment data.

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions