From eda88bd1a684c8d462e12db31fb29cbccdf67a3d Mon Sep 17 00:00:00 2001 From: nb Date: Thu, 13 Jun 2019 16:20:16 +1100 Subject: [PATCH] feat(formulas): git.latest parallelization --- salt/formulas.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/formulas.sls b/salt/formulas.sls index cfed9f3..9427a3a 100644 --- a/salt/formulas.sls +++ b/salt/formulas.sls @@ -34,6 +34,7 @@ {%- do processed_basedirs.append(basedir) %} {{ basedir }}: file.directory: + - parallel: {{ salt.pkg.version_cmp(grains['saltversion'], '2017.7.0') >= 0 }} {%- for key, value in salt['pillar.get']('salt_formulas:basedir_opts', {'makedirs': True}).items() %} - {{ key }}: {{ value }} @@ -53,12 +54,11 @@ {{ gitdir_env }}: git.latest: - name: {{ baseurl }}/{{ f_name }}.git + - parallel: {{ salt.pkg.version_cmp(grains['saltversion'], '2017.7.0') >= 0 }} - target: {{ gitdir }} {%- for key, value in options.items() %} - {{ key }}: {{ value }} {%- endfor %} - - require: - - file: {{ basedir }} {%- if not update %} - unless: test -e {{ gitdir }} >/dev/null 2>&1 {%- endif %}