|
|
|
|
|
|
|
|
|
|
|
|
|
|
salt_env_{{ master.system.environment }}_dirs_obsolete: |
|
|
salt_env_{{ master.system.environment }}_dirs_obsolete: |
|
|
file.directory: |
|
|
file.directory: |
|
|
- names: |
|
|
|
|
|
|
|
|
- names: |
|
|
- /srv/salt/env/{{ master.system.environment }}/_modules |
|
|
- /srv/salt/env/{{ master.system.environment }}/_modules |
|
|
- /srv/salt/env/{{ master.system.environment }}/_states |
|
|
- /srv/salt/env/{{ master.system.environment }}/_states |
|
|
- /srv/salt/env/{{ master.system.environment }}/_grains |
|
|
- /srv/salt/env/{{ master.system.environment }}/_grains |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
salt_env_{{ environment_name }}_pre_dirs: |
|
|
salt_env_{{ environment_name }}_pre_dirs: |
|
|
file.directory: |
|
|
file.directory: |
|
|
- names: |
|
|
|
|
|
|
|
|
- names: |
|
|
- /usr/share/salt-formulas/env/_modules |
|
|
- /usr/share/salt-formulas/env/_modules |
|
|
- /usr/share/salt-formulas/env/_states |
|
|
- /usr/share/salt-formulas/env/_states |
|
|
- /usr/share/salt-formulas/env/_grains |
|
|
- /usr/share/salt-formulas/env/_grains |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
salt_env_{{ environment_name }}_dirs: |
|
|
salt_env_{{ environment_name }}_dirs: |
|
|
file.directory: |
|
|
file.directory: |
|
|
- names: |
|
|
|
|
|
|
|
|
- names: |
|
|
- /srv/salt/env/{{ environment_name }}/_modules |
|
|
- /srv/salt/env/{{ environment_name }}/_modules |
|
|
- /srv/salt/env/{{ environment_name }}/_states |
|
|
- /srv/salt/env/{{ environment_name }}/_states |
|
|
- /srv/salt/env/{{ environment_name }}/_grains |
|
|
- /srv/salt/env/{{ environment_name }}/_grains |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
|
|
|
salt_master_{{ environment_name }}_pkg_formulas: |
|
|
|
|
|
pkg.latest: |
|
|
|
|
|
- pkgs: |
|
|
{%- for formula_name, formula in environment.get('formula', {}).iteritems() %} |
|
|
{%- for formula_name, formula in environment.get('formula', {}).iteritems() %} |
|
|
|
|
|
|
|
|
{%- if formula.source == 'pkg' %} |
|
|
{%- if formula.source == 'pkg' %} |
|
|
|
|
|
- {{ formula.name }} |
|
|
|
|
|
{%- endif %} |
|
|
|
|
|
{%- endfor %} |
|
|
|
|
|
|
|
|
salt_master_{{ environment_name }}_{{ formula.name }}_formula: |
|
|
|
|
|
pkg.latest: |
|
|
|
|
|
- name: {{ formula.name }} |
|
|
|
|
|
|
|
|
{%- for formula_name, formula in environment.get('formula', {}).iteritems() %} |
|
|
|
|
|
|
|
|
{%- elif formula.source == 'git' %} |
|
|
|
|
|
|
|
|
{%- if formula.source == 'git' %} |
|
|
|
|
|
|
|
|
{%- if master.base_environment == environment_name %} |
|
|
{%- if master.base_environment == environment_name %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: git.fetch |
|
|
- name: git.fetch |
|
|
- cwd: /usr/share/salt-formulas/env/_formulas/{{ formula_name }} |
|
|
- cwd: /usr/share/salt-formulas/env/_formulas/{{ formula_name }} |
|
|
- opts: {{ formula.address }} {{ formula.revision }} |
|
|
- opts: {{ formula.address }} {{ formula.revision }} |
|
|
- require: |
|
|
|
|
|
|
|
|
- require: |
|
|
- git: salt_master_{{ environment_name }}_{{ formula_name }}_formula |
|
|
- git: salt_master_{{ environment_name }}_{{ formula_name }}_formula |
|
|
|
|
|
|
|
|
salt_master_{{ environment_name }}_{{ formula_name }}_formula_refs_workaround_reset: |
|
|
salt_master_{{ environment_name }}_{{ formula_name }}_formula_refs_workaround_reset: |