New version of salt-formula from Saltstack
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

27 行
507B

  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 %}