From e9e986080d8fcac7069b64fbb9b753f7008e794a Mon Sep 17 00:00:00 2001 From: Actaeus Curabitur Date: Thu, 8 Sep 2022 07:06:42 -0500 Subject: [PATCH] updated pillar top --- pillars/top.sls | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pillars/top.sls b/pillars/top.sls index a6637e3..61aec66 100644 --- a/pillars/top.sls +++ b/pillars/top.sls @@ -1,8 +1,7 @@ -prod: - '*': - - roles - - servers -dev: +{%- 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 %}