-
-
Save ryan-lane/dc27a3e0b9deff175492 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
```yaml | |
{% for var in ['service_name', 'service_instance', 'region'] %} | |
{% if not grains.get(var, None) %} | |
{{ var.upper() }} environment variable check: | |
test.configurable_test_state: | |
- name: {{ var.upper() }} environment variable not set | |
- comment: {{ var.upper() }} environment variable must be set | |
- failhard: True | |
- changes: False | |
- result: False | |
{% endif %} | |
{% endfor %} | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment