Saltstack Official Linux Formula
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.

29 line
705B

  1. {%- from "linux/map.jinja" import system with context %}
  2. {%- if system.enabled %}
  3. linux_packages:
  4. pkg.installed:
  5. - names: {{ system.pkgs }}
  6. {%- for name, package in system.package.iteritems() %}
  7. linux_extra_package_{{ name }}:
  8. {%- if package.version == 'latest' %}
  9. pkg.latest:
  10. {%- else %}
  11. pkg.installed:
  12. - version: {{ package.version }}
  13. {%- endif %}
  14. - name: {{ name }}
  15. {%- if package.repo is defined %}
  16. - fromrepo: {{ package.repo }}
  17. {%- endif %}
  18. {%- if package.hold is defined %}
  19. - hold: {{ package.hold }}
  20. {%- endif %}
  21. {%- if package.verify is defined %}
  22. - skip_verify: {% if package.verify %}false{% else %}true{% endif %}
  23. {%- endif %}
  24. {%- endfor %}
  25. {%- endif %}