i did something similar, but that is a bit hacky. ...
# puppet
m
i did something similar, but that is a bit hacky. i added a facter script that read all module names from the last run report (would have to look up how i did it again). and then i used "mapped_paths: [modules_fact,module,"modules/%{module}.yaml"]" do "dynamically" load data based on the applied modules of the last run