-
-
Save whytewolf/c6ed0f158851d4decf96876575898356 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if salt.match.compound('S@subnet1 or S@subnet2 or S@subnet3') %} | |
{% set datacenter = 'dc01' %} | |
{% elif salt.match.compound('S@subnet4 or S@subnet5 or S@subnet6') %} | |
{%set datacenter = 'dc02'%} | |
{% else %} | |
{% set datacenter = 'unknown' %} | |
{%endif%} | |
datacenter_grain: | |
grains.set: | |
- datacenter: {{datacenter}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment