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.

known_hosts.sls 528B

12345678910111213141516171819202122
  1. {% from "openssh/map.jinja" import openssh with context %}
  2. check for existing dig:
  3. cmd.run:
  4. - name: which dig
  5. ensure dig is available:
  6. pkg.installed:
  7. - name: {{ openssh.dig_pkg }}
  8. - onfail:
  9. - cmd: check for existing dig
  10. manage ssh_known_hosts file:
  11. file.managed:
  12. - name: {{ openssh.ssh_known_hosts }}
  13. - source: salt://openssh/files/ssh_known_hosts
  14. - template: jinja
  15. - user: root
  16. - group: {{ openssh.root_group }}
  17. - mode: 644
  18. - require:
  19. - pkg: ensure dig is available