|
|
|
|
|
|
|
|
{% from "salt/formulas.jinja" import formulas_git_opt with context %} |
|
|
{% from "salt/formulas.jinja" import formulas_git_opt with context %} |
|
|
|
|
|
|
|
|
# Loop over all formulas listed in pillar data |
|
|
# Loop over all formulas listed in pillar data |
|
|
{% for env, entries in salt['pillar.get']('salt_formulas:list', {}).items() %} |
|
|
|
|
|
|
|
|
{% for env, elements in salt['pillar.get']('salt_formulas:list', {}).items() %} |
|
|
|
|
|
{% for baseurl, entries in elements.items() %} |
|
|
{% for entry in entries %} |
|
|
{% for entry in entries %} |
|
|
|
|
|
|
|
|
{% set basedir = formulas_git_opt(env, 'basedir')|load_yaml %} |
|
|
{% set basedir = formulas_git_opt(env, 'basedir')|load_yaml %} |
|
|
|
|
|
|
|
|
{% if gitdir not in processed_gitdirs %} |
|
|
{% if gitdir not in processed_gitdirs %} |
|
|
{% do processed_gitdirs.append(gitdir) %} |
|
|
{% do processed_gitdirs.append(gitdir) %} |
|
|
{% set options = formulas_git_opt(env, 'options')|load_yaml %} |
|
|
{% set options = formulas_git_opt(env, 'options')|load_yaml %} |
|
|
{% set baseurl = formulas_git_opt(env, 'baseurl')|load_yaml %} |
|
|
|
|
|
{{ gitdir }}: |
|
|
{{ gitdir }}: |
|
|
git.latest: |
|
|
git.latest: |
|
|
- name: {{ baseurl }}/{{ entry }}.git |
|
|
- name: {{ baseurl }}/{{ entry }}.git |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
|
|
|
{% endfor %} |