Skip to content

Instantly share code, notes, and snippets.

@VertigoRay
Created August 23, 2013 00:40
Show Gist options
  • Save VertigoRay/6314383 to your computer and use it in GitHub Desktop.
Save VertigoRay/6314383 to your computer and use it in GitHub Desktop.
List of test computers
{% for computer in 'TEST001','TEST002','TEST003' %}
{% if grains['nodename'] == computer %}
is_test_computer: True
{% else %}
is_test_computer: False
{% endif %}
{% else %}
is_test_computer: False
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment