Skip to content

Commit

Permalink
Merge pull request #445 from sticky-note/feat/pin_ver_para
Browse files Browse the repository at this point in the history
feat(formulas): git.latest parallelization
  • Loading branch information
aboe76 authored Dec 19, 2019
2 parents 8eab935 + eda88bd commit 11eeb7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions salt/formulas.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 %}
Expand Down

0 comments on commit 11eeb7c

Please sign in to comment.