I'm a little stumped. salt/top.sls and pillar/top.sls seem to be parsed differently. This:
base:
'foo':
- match: bar
causes an appropriate error ("Attempting to match with unknown matcher") in pillar/top.sls, but not salt/top.sls. For salt/top.sls, if:
- Does not exist, then "Top data not found..."
- No content, then "No states found..."
- Any content, (like
sendmail.cf, seriously), then nothing happens. There just wasn't a match. So in the example above nothing happens.
I just simply copied "grains_match" and replaced "grain" or "grains" with "pillar" and that seems to work. But I can't tell for certain since I never seem to be able to produce any errors in my tests.
Could someone point me to where salt/top.sls is parsed. I followed "get_tops" in state.py, and that doesn't seem to be it. No?
Thanks.
-Tom
On Thursday, May 17, 2012 11:57:26 AM UTC-4, Thomas Hatch wrote:
Yes, I am definitely open to having a pillar matcher! In reality it should not be too hard to add if you want to take a swing at it.