|
|
|
|
|
|
|
|
- target: /usr/share/salt-formulas/env/_formulas/{{ formula_name }}/{{ formula_name }} |
|
|
- target: /usr/share/salt-formulas/env/_formulas/{{ formula_name }}/{{ formula_name }} |
|
|
- require: |
|
|
- require: |
|
|
- file: salt_env_{{ environment_name }}_dirs |
|
|
- file: salt_env_{{ environment_name }}_dirs |
|
|
|
|
|
- force: True |
|
|
|
|
|
- makedirs: True |
|
|
|
|
|
|
|
|
{%- for grain_name, grain in formula.get('grain', {}).iteritems() %} |
|
|
{%- for grain_name, grain in formula.get('grain', {}).iteritems() %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
file.symlink: |
|
|
file.symlink: |
|
|
- name: /usr/share/salt-formulas/env/_grains/{{ grain_name }} |
|
|
- name: /usr/share/salt-formulas/env/_grains/{{ grain_name }} |
|
|
- target: /usr/share/salt-formulas/env/_formulas/{{ formula_name }}/_grains/{{ grain_name }} |
|
|
- target: /usr/share/salt-formulas/env/_formulas/{{ formula_name }}/_grains/{{ grain_name }} |
|
|
|
|
|
- force: True |
|
|
|
|
|
- makedirs: True |
|
|
|
|
|
|
|
|
{%- endfor %} |
|
|
{%- endfor %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
file.symlink: |
|
|
file.symlink: |
|
|
- name: /usr/share/salt-formulas/env/_modules/{{ module_name }} |
|
|
- name: /usr/share/salt-formulas/env/_modules/{{ module_name }} |
|
|
- target: /usr/share/salt-formulas/env/_formulas/{{ formula_name }}/_modules/{{ module_name }} |
|
|
- target: /usr/share/salt-formulas/env/_formulas/{{ formula_name }}/_modules/{{ module_name }} |
|
|
|
|
|
- force: True |
|
|
|
|
|
- makedirs: True |
|
|
|
|
|
|
|
|
{%- endfor %} |
|
|
{%- endfor %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
file.symlink: |
|
|
file.symlink: |
|
|
- name: /usr/share/salt-formulas/env/_states/{{ state_name }} |
|
|
- name: /usr/share/salt-formulas/env/_states/{{ state_name }} |
|
|
- target: /usr/share/salt-formulas/env/_formulas/{{ formula_name }}/_states/{{ state_name }} |
|
|
- target: /usr/share/salt-formulas/env/_formulas/{{ formula_name }}/_states/{{ state_name }} |
|
|
|
|
|
- force: True |
|
|
|
|
|
- makedirs: True |
|
|
|
|
|
|
|
|
{%- endfor %} |
|
|
{%- endfor %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- target: /srv/salt/env/{{ environment_name }}/_formulas/{{ formula_name }}/{{ formula_name }} |
|
|
- target: /srv/salt/env/{{ environment_name }}/_formulas/{{ formula_name }}/{{ formula_name }} |
|
|
- require: |
|
|
- require: |
|
|
- file: salt_env_{{ environment_name }}_dirs |
|
|
- file: salt_env_{{ environment_name }}_dirs |
|
|
|
|
|
- force: True |
|
|
|
|
|
- makedirs: True |
|
|
|
|
|
|
|
|
{%- for grain_name, grain in formula.get('grain', {}).iteritems() %} |
|
|
{%- for grain_name, grain in formula.get('grain', {}).iteritems() %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
file.symlink: |
|
|
file.symlink: |
|
|
- name: /srv/salt/env/{{ environment_name }}/_grains/{{ grain_name }} |
|
|
- name: /srv/salt/env/{{ environment_name }}/_grains/{{ grain_name }} |
|
|
- target: /srv/salt/env/{{ environment_name }}/_formulas/{{ formula_name }}/_grains/{{ grain_name }} |
|
|
- target: /srv/salt/env/{{ environment_name }}/_formulas/{{ formula_name }}/_grains/{{ grain_name }} |
|
|
|
|
|
- force: True |
|
|
|
|
|
- makedirs: True |
|
|
|
|
|
|
|
|
{%- endfor %} |
|
|
{%- endfor %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
file.symlink: |
|
|
file.symlink: |
|
|
- name: /srv/salt/env/{{ environment_name }}/_grains/{{ module_name }} |
|
|
- name: /srv/salt/env/{{ environment_name }}/_grains/{{ module_name }} |
|
|
- target: /srv/salt/env/{{ environment_name }}/_formulas/{{ formula_name }}/_grains/{{ module_name }} |
|
|
- target: /srv/salt/env/{{ environment_name }}/_formulas/{{ formula_name }}/_grains/{{ module_name }} |
|
|
|
|
|
- force: True |
|
|
|
|
|
- makedirs: True |
|
|
|
|
|
|
|
|
{%- endfor %} |
|
|
{%- endfor %} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
file.symlink: |
|
|
file.symlink: |
|
|
- name: /srv/salt/env/{{ environment_name }}/_grains/{{ state_name }} |
|
|
- name: /srv/salt/env/{{ environment_name }}/_grains/{{ state_name }} |
|
|
- target: /srv/salt/env/{{ environment_name }}/_formulas/{{ formula_name }}/_grains/{{ state_name }} |
|
|
- target: /srv/salt/env/{{ environment_name }}/_formulas/{{ formula_name }}/_grains/{{ state_name }} |
|
|
|
|
|
- force: True |
|
|
|
|
|
- makedirs: True |
|
|
|
|
|
|
|
|
{%- endfor %} |
|
|
{%- endfor %} |
|
|
|
|
|
|