--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/413e6a34-8419-4c72-ac86-0951ec08885dn%40googlegroups.com.
sorry, that did not answer the question at all. from the question the user wants all version 7 systems and only version 8 systems that do not start with x. this has nothing to do with testing if redhat.
personally i would stop trying to match inside jinja and break this into smaller files that get used by the top targeting.
but barring that
{% if salt['match.compound']('G@osmajorrelease:7 or ( G@osmajorrelease:8 and not G@host:X* )') %}
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/CAOSypRh-KkmmbYnZCPtZzdzj9mOBc1Surd57svnfZTNhF%3DvHGg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/1c54988b-d456-4b79-bbf0-4c29f929541fn%40googlegroups.com.