puppet-ghostbuster
puppet-ghostbuster copied to clipboard
Detect unused hiera variables
Would really like this feature!
I rebased it, but TBH I can't remember whether or not it was working when I coded this 6 years ago... As I don't use Puppet anymore, I can't test this. I guess someone has to test it to see if if works properly and we could merge it.
Thanks for merging in!
I tested it a couple of weeks ago, but it doesn't work correctly yet. When I was in this space, I got blocked on this issue:
https://github.com/voxpupuli/puppet-ghostbuster/pull/56/files#diff-b35760b16358995b4318148cd42c05ab94665ec9f003d09717e8dfcd161ee179R30
Whereas, the new version of Puppet has a different format for keys, as depicted here: https://puppet.com/docs/puppet/6/hiera_config_yaml_5.html
There might be more issues, but only invested about 5 minutes of free time I had and found that issue so long.