Closed andrew-vant closed 9 years ago
I know there's already mine support in this formula, but is there a reason that was added vs just doing the mine lookups in the pillar sls files? That seems more flexible (you can use mine, but don't have to... etc.)
I've never been able to get mine lookup inside pillar to work (and wasn't aware it was supposed to be possible) so the possibility simply didn't cross my mind.
You can't lookup mine data in pillars IIRC (cf. https://github.com/saltstack/salt/issues/21403 )
Any motion on this?
does your change work ? I havent tested it, just asking if it works.
Well, it works in my environment, or I wouldn't have put in the PR. I can't technically prove it will work for anyone else, of course.
Sounds good, @iggy up to you, i think its a good change.
Well, apparently mine lookups in pillar files don't currently work, so let's roll with it for now.
I reserve the right to rip this out later if they get mine-in-pillar working at some point ;)
Fine by me. I don't like baking mine into states either; but if one is stuck with it, it's better for it to be configurable.
This is useful if you have other states that want to get network.ip_addrs for different interfaces.