New version of salt-formula from Saltstack
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

service.sls 507B

9 years ago
1234567891011121314151617181920212223242526
  1. {% from "salt/map.jinja" import control with context %}
  2. {%- if control.enabled %}
  3. {%- if control.pkgs is defined and control.pkgs|length > 0 %}
  4. salt_control_packages:
  5. pkg.installed:
  6. - names: {{ control.pkgs }}
  7. {%- else %}
  8. {# No system packages defined, install with pip #}
  9. salt_control_packages:
  10. pkg.installed:
  11. - name: python-pip
  12. {%- for package in control.python_pkgs %}
  13. {{ package }}:
  14. pip.installed:
  15. - require:
  16. - pkg: salt_control_packages
  17. {%- endfor %}
  18. {%- endif %}
  19. {%- endif %}