Browse Source

Fix installing cross-formula dependencies

Change-Id: I6a56167d7b887c0e876fb6af65903f87043e8214
pull/73/head
Vasyl Saienko 6 years ago
parent
commit
f241bb7779
1 changed files with 10 additions and 7 deletions
  1. +10
    -7
      salt/minion/service.sls

+ 10
- 7
salt/minion/service.sls View File

{%- endfor %} {%- endfor %}
{%- endif %} {%- endif %}


{%- if support_yaml and support_yaml.get('dependency', {}) %}
{%- if support_yaml.get('engine', 'pkg') == 'pkg' %}
{%- if support_yaml %}
{%- set dependency = support_yaml.get('dependency') %}
{%- if dependency %}
{%- if dependency.get('engine', 'pkg') == 'pkg' %}


salt_minion_{{ service_name }}_dependencies: salt_minion_{{ service_name }}_dependencies:
pkg.installed: pkg.installed:
- names: {{ support_yaml.pkgs }}
- names: {{ dependency.get('pkgs') }}
- onchanges_in: - onchanges_in:
- cmd: salt_minion_service_restart - cmd: salt_minion_service_restart
{%- elif support_yaml.engine == 'pip' %}
{%- if support_yaml.get('pkgs') %}
{%- elif dependency.get('engine', 'pkg') == 'pip' %}
{%- if dependency.get('pkgs') %}
salt_minion_{{ service_name }}_dependencies: salt_minion_{{ service_name }}_dependencies:
pip.installed: pip.installed:
- names: {{ support_yaml.pkgs }}
- names: {{ dependency.get('pkgs') }}
- onchanges_in: - onchanges_in:
- cmd: salt_minion_service_restart - cmd: salt_minion_service_restart
- require_in: - require_in:


salt_minion_{{ service_name }}_dependencies_pip: salt_minion_{{ service_name }}_dependencies_pip:
pip.installed: pip.installed:
- names: {{ support_yaml.python_pkgs }}
- names: {{ dependency.get('python_pkgs') }}
- onchanges_in: - onchanges_in:
- cmd: salt_minion_service_restart - cmd: salt_minion_service_restart


{%- endif %} {%- endif %}
{%- endif %} {%- endif %}
{%- endif %}
{%- endfor %} {%- endfor %}


salt_minion_service: salt_minion_service:

Loading…
Cancel
Save