Browse Source

Merge pull request #445 from sticky-note/feat/pin_ver_para

feat(formulas): git.latest parallelization
tags/v1.1.0
Niels Abspoel 5 years ago
parent
commit
11eeb7cbc2
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      salt/formulas.sls

+ 2
- 2
salt/formulas.sls View File

@@ -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 %}

Loading…
Cancel
Save