This commit is contained in:
Actaeus Curabitur 2022-09-08 05:39:36 -05:00
parent 4d631dfdf1
commit 7a5df216cc

View file

@ -1,4 +1,9 @@
{%- set os=grains['os'] -%}
{%- set branches=salt.cmd.shell('git ls-remote https://git.actcur.com/actcur/salt.git | grep -o -P "(?<=refs/heads/).*" | grep -Pv "(^temp$)|(^history$)"') -%}
/test:
file.managed:
- content: '{{branches}}'
salt-master:
{%- if os=="CentOS" or os=="RedHat" %}