betadots / hdm

The Hiera Data Manager (HDM) is a Web UI to visualize Hiera data and make it searchable!
GNU Affero General Public License v3.0
20 stars 4 forks source link

Create library for parsing hiera data #84

Open rwaffen opened 2 years ago

rwaffen commented 2 years ago

divide objects and export hiera parsing into an own library.

tuxmea commented 1 year ago

@bastelfreak David mentioned that you have ideas on what to achieve here.

oneiros commented 7 months ago

Since Robert added this after a comment I made, and since we have talked about this briefly many times now, I think I should elaborate:

The code is already structured such that we have "high-level" classes to work with in the web layer, and "low-level" classes that directly interact with hiera yaml files in the file system.

My idea was to extract the latter into its own gem. Having a dedicated library to query hiera data might not only be beneficial for hdm but might also be used in other projects.

We could even couple this with a small CLI-Tool to query hiera data.

But this is all just an idea and nothing that will benefit hdm immediately. We might even move it to a discussion, because it is not really an "open issue".