puppet-ghostbuster icon indicating copy to clipboard operation
puppet-ghostbuster copied to clipboard

Detect unused hiera variables

Open mcanevet opened this issue 8 years ago • 3 comments

mcanevet avatar Jun 01 '16 08:06 mcanevet

Would really like this feature!

JoshuaSmeda avatar Aug 16 '22 10:08 JoshuaSmeda

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.

mcanevet avatar Aug 16 '22 11:08 mcanevet

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.

JoshuaSmeda avatar Aug 17 '22 08:08 JoshuaSmeda