I have a hash with a list in hiera. I use this to automatically create the dbs in the RDBMS via create_resources
dbs:
- dbname: something
- dbname: or
- dbname: other
I would like to use this same list to automatically create a plain text file with one entry per line, for use by our backup script. This list will always be present with an arbitrary number of entries >=1.
The resulting file should then look like
something
or
other
What's the best way to do this? I haven't been able to find anything.