Converting Puppet DSL to YAML
I find myself needing to parse some '.pp' files to extract data that needs moving into Hiera and as such convert Puppet DSL to Yaml formatted data.
There does not seem to be an easy way to do this as far as I can tell. puppet-inspect from puppet-cleaner gem should do this from what I can read but it does not work right no as per Issue 16 in the project's issue tracker. Looking at the projects activity I don't see any hope of it getting fixed soon.
As such does anyone know an easy way to do what I'm trying to do? I don't need all the extra features of puppet-cleaner mind, just the conversion.