mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2026-10-24 09:59:35 +02:00
Add a new openssh.known_hosts state
This state manages /etc/ssh/ssh_known_hosts and fills it with public SSH host keys of other minions.
This commit is contained in:
1 parent
9940513b6c
commit
1b74efd2d0
5 files changed
+125
No files matched your search
@@ -0,0 +1,16 @@
|
||||
{% from "openssh/map.jinja" import openssh with context %}
|
||||
|
||||
ensure dig is available:
|
||||
pkg.installed:
|
||||
- name: {{ openssh.dig_pkg }}
|
||||
|
||||
manage ssh_known_hosts file:
|
||||
file.managed:
|
||||
- name: {{ openssh.ssh_known_hosts }}
|
||||
- source: salt://openssh/files/ssh_known_hosts
|
||||
- template: jinja
|
||||
- user: root
|
||||
- group: root
|
||||
- mode: 644
|
||||
- require:
|
||||
- pkg: ensure dig is available
|
||||
Reference in new issue
Block a user