Saltstack Official Syslog-NG 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.

packages.sls 414B

123456789101112131415
  1. {% from "syslog_ng/map.jinja" import syslog_ng with context %}
  2. include:
  3. - syslog_ng
  4. {%- if syslog_ng.packages is defined and syslog_ng.packages %}
  5. syslog_ng_packages:
  6. pkg.installed:
  7. - pkgs:
  8. {%- for pkg in syslog_ng.packages %}
  9. - {{ pkg.name }}{% if pkg.version is defined and pkg.version %}: '{{ pkg.version }}' {% endif %}
  10. {%- endfor %}
  11. - watch_in:
  12. - service: syslog_ng
  13. {%- endif %}