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.

20 satır
558B

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=sls
  3. {#- Get the `tplroot` from `tpldir` #}
  4. {%- set tplroot = tpldir.split('/')[0] %}
  5. {%- from tplroot ~ "/map.jinja" import syslog_ng with context %}
  6. syslog_ng/package/install:
  7. pkg.installed:
  8. - name: {{ syslog_ng.package }}
  9. {%- if syslog_ng.packages is defined and syslog_ng.packages %}
  10. syslog_ng/packages/install:
  11. pkg.installed:
  12. - pkgs:
  13. {%- for pkg in syslog_ng.packages %}
  14. - {{ pkg.name }}{% if pkg.version is defined and pkg.version %}: '{{ pkg.version }}' {% endif %}
  15. {%- endfor %}
  16. {%- endif %}