Saltstack Official OpenSSH Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

23 rindas
709B

  1. {%- set tplroot = tpldir.split('/')[0] %}
  2. {%- from tplroot ~ "/map.jinja" import openssh with context %}
  3. {%- from tplroot ~ "/libtofs.jinja" import files_switch %}
  4. ensure dig is available:
  5. pkg.installed:
  6. - name: {{ openssh.dig_pkg }}
  7. manage ssh_known_hosts file:
  8. file.managed:
  9. - name: {{ openssh.ssh_known_hosts }}
  10. - source: {{ files_switch( [openssh.ssh_known_hosts_src],
  11. 'manage ssh_known_hosts file'
  12. ) }}
  13. - template: jinja
  14. - context:
  15. known_hosts: {{ openssh | traverse("known_hosts", {}) | json }}
  16. - user: root
  17. - group: {{ openssh.ssh_config_group }}
  18. - mode: 644
  19. - require:
  20. - pkg: ensure dig is available