salt/pillars/top.sls
2022-09-08 07:06:42 -05:00

7 lines
261 B
Text

{%- set branches=salt.cmd.shell('git ls-remote https://git.actcur.com/actcur/salt.git | grep -o -P "(?<=refs/heads/).*" | grep -Pv "(^temp$)|(^history$)"').split('\n') -%}
{%- for branch in branches %}
{{branch}}:
'*':
- roles
- servers
{%- endfor %}