Advertisement
Guest User

Untitled

a guest
Apr 30th, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. {%- set isLocal = "false" -%}
  2. {% for host,ip in salt['mine.get']('*', 'network.ip_addrs').items() -%}
  3. {% if ip|replace("10.255.255", "LOCAL").split('LOCAL').count() == 2 %}
  4. {%- set isLocal = "true" -%}
  5. {%- endif %}
  6. {%- endfor %}
  7.  
  8.  
  9. This is always false though
  10. {% if isLocal == "true" %}
  11. - env.development
  12. {% else %}
  13. - env.production
  14. {%- endif %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement