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