-
-
Save waynegemmell/f438fc28a51da3841b0b2de5d001e441 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
{% set parts = grains['host'].split('-') %} | |
{% if parts[1] == 'live' %} | |
config: live | |
{% elif parts[1] == 'dev' %} | |
config: dev | |
{% else %} | |
config: dev | |
{% endif %} | |
{% if parts|length < 4 %} | |
branch: 'master' | |
{% else %} | |
branch: {{ parts[2] }} | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment