mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2026-10-23 16:45:24 +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
@@ -7,6 +7,8 @@
|
||||
'sshd_config_src': 'salt://openssh/files/sshd_config',
|
||||
'banner': '/etc/ssh/banner',
|
||||
'banner_src': 'salt://openssh/files/banner',
|
||||
'dig_pkg': 'dnsutils',
|
||||
'ssh_known_hosts': '/etc/ssh/ssh_known_hosts',
|
||||
},
|
||||
'Debian': {
|
||||
'server': 'openssh-server',
|
||||
@@ -16,6 +18,8 @@
|
||||
'sshd_config_src': 'salt://openssh/files/sshd_config',
|
||||
'banner': '/etc/ssh/banner',
|
||||
'banner_src': 'salt://openssh/files/banner',
|
||||
'dig_pkg': 'dnsutils',
|
||||
'ssh_known_hosts': '/etc/ssh/ssh_known_hosts',
|
||||
},
|
||||
'FreeBSD': {
|
||||
'service': 'sshd',
|
||||
@@ -23,6 +27,8 @@
|
||||
'sshd_config_src': 'salt://openssh/files/sshd_config',
|
||||
'banner': '/etc/ssh/banner',
|
||||
'banner_src': 'salt://openssh/files/banner',
|
||||
'dig_pkg': 'bind-tools',
|
||||
'ssh_known_hosts': '/etc/ssh/ssh_known_hosts',
|
||||
},
|
||||
'Gentoo': {
|
||||
'server': 'net-misc/openssh',
|
||||
@@ -32,6 +38,8 @@
|
||||
'sshd_config_src': 'salt://openssh/files/sshd_config',
|
||||
'banner': '/etc/ssh/banner',
|
||||
'banner_src': 'salt://openssh/files/banner',
|
||||
'dig_pkg': 'net-dns/bind-tools',
|
||||
'ssh_known_hosts': '/etc/ssh/ssh_known_hosts',
|
||||
},
|
||||
'RedHat': {
|
||||
'server': 'openssh-server',
|
||||
@@ -41,6 +49,8 @@
|
||||
'sshd_config_src': 'salt://openssh/files/sshd_config',
|
||||
'banner': '/etc/ssh/banner',
|
||||
'banner_src': 'salt://openssh/files/banner',
|
||||
'dig_pkg': 'bind-utils',
|
||||
'ssh_known_hosts': '/etc/ssh/ssh_known_hosts',
|
||||
},
|
||||
'Suse': {
|
||||
'server': 'openssh',
|
||||
@@ -50,5 +60,7 @@
|
||||
'sshd_config_src': 'salt://openssh/files/sshd_config',
|
||||
'banner': '/etc/ssh/banner',
|
||||
'banner_src': 'salt://openssh/files/banner',
|
||||
'dig_pkg': 'bind-utils',
|
||||
'ssh_known_hosts': '/etc/ssh/ssh_known_hosts',
|
||||
},
|
||||
}, merge=salt['pillar.get']('openssh:lookup')) %}
|
||||
Reference in new issue
Block a user