Closed loood closed 10 months ago
The documentation change is a good addition and easy to add.
The to_yaml
function doesn't have a sort function of its own. But if I understand correctly it generates the resultant YAML in the same order it receives the data. So you might be able to use the following lookup functionality to sort your YAML: https://www.puppet.com/docs/puppet/7/hiera_merging.html#merge_behaviors
I'm reluctant to add this as a feature, since the end result is the same regardless of sorting and my primary purpose with this module was simplicity.
The header and priority might be possible but I need to look into it further. They might introduce some breaking change.
Hi! Thanks for making this module. Couple of thoughts
lookup_options
. Mainly cause I wanted to reduce the amount of copy and paste. See examples below.to_yaml
?# this file is managed by puppet
or equivalent ?