Saltstack Official OpenSSH 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.

23 lines
919B

  1. # -*- coding: utf-8 -*-
  2. # vim: ft=jinja
  3. {#- Start imports as #}
  4. {% import_yaml 'openssh/defaults.yaml' as default_settings %}
  5. {% import_yaml 'openssh/osfamilymap.yaml' as osfamilymap %}
  6. {% import_yaml 'openssh/osmap.yaml' as osmap %}
  7. {% import_yaml 'openssh/osfingermap.yaml' as osfingermap %}
  8. {% set defaults = salt['grains.filter_by'](default_settings,
  9. default='default',
  10. merge=salt['grains.filter_by'](osfamilymap, grain='os_family',
  11. merge=salt['grains.filter_by'](osmap, grain='os',
  12. merge=salt['grains.filter_by'](osfingermap, grain='osfinger')
  13. )
  14. )
  15. ) %}
  16. {#- merge the openssh pillar #}
  17. {% set openssh = salt['pillar.get']('openssh', default=defaults['openssh'], merge=True) %}
  18. {% set ssh_config = salt['pillar.get']('ssh_config', default=defaults['ssh_config'], merge=True) %}
  19. {% set sshd_config = salt['pillar.get']('sshd_config', default=defaults['sshd_config'], merge=True) %}