New version of salt-formula from Saltstack
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

16 lines
490B

  1. {%- from "linux/map.jinja" import system with context %}
  2. {%- from "salt/map.jinja" import api with context %}
  3. rest_cherrypy:
  4. port: {{ api.bind.port }}
  5. host: {{ api.bind.address }}
  6. {%- if api.get('ssl', {}).get('enabled', False) %}
  7. ssl_crt: /etc/ssl/certs/{{ system.name }}.{{ system.domain }}.crt
  8. ssl_key: /etc/ssl/private/{{ system.name }}.{{ system.domain }}.key
  9. {%- else %}
  10. disable_ssl: True
  11. {%- endif %}
  12. {%- if api.get('debug', False) %}
  13. debug: True
  14. {%- endif %}