2014-01-04 01:54:51 +01:00
|
|
|
{% set openssh = salt['grains.filter_by']({
|
2015-03-23 14:55:40 +01:00
|
|
|
'Arch': {
|
|
|
|
'server': 'openssh',
|
|
|
|
'client': 'openssh',
|
|
|
|
'service': 'sshd.socket',
|
2014-01-04 01:54:51 +01:00
|
|
|
'sshd_config': '/etc/ssh/sshd_config',
|
|
|
|
'sshd_config_src': 'salt://openssh/files/sshd_config',
|
|
|
|
'banner': '/etc/ssh/banner',
|
|
|
|
'banner_src': 'salt://openssh/files/banner',
|
2015-03-26 17:50:32 +01:00
|
|
|
'dig_pkg': 'dnsutils',
|
|
|
|
'ssh_known_hosts': '/etc/ssh/ssh_known_hosts',
|
2014-01-04 01:54:51 +01:00
|
|
|
},
|
2015-03-23 14:55:40 +01:00
|
|
|
'Debian': {
|
2014-01-04 01:54:51 +01:00
|
|
|
'server': 'openssh-server',
|
2015-03-23 14:55:40 +01:00
|
|
|
'client': 'openssh-client',
|
|
|
|
'service': 'ssh',
|
2014-01-04 01:54:51 +01:00
|
|
|
'sshd_config': '/etc/ssh/sshd_config',
|
|
|
|
'sshd_config_src': 'salt://openssh/files/sshd_config',
|
|
|
|
'banner': '/etc/ssh/banner',
|
|
|
|
'banner_src': 'salt://openssh/files/banner',
|
2015-03-26 17:50:32 +01:00
|
|
|
'dig_pkg': 'dnsutils',
|
|
|
|
'ssh_known_hosts': '/etc/ssh/ssh_known_hosts',
|
2014-01-04 01:54:51 +01:00
|
|
|
},
|
2015-03-23 14:55:40 +01:00
|
|
|
'FreeBSD': {
|
2014-12-08 21:38:23 +01:00
|
|
|
'service': 'sshd',
|
|
|
|
'sshd_config': '/etc/ssh/sshd_config',
|
|
|
|
'sshd_config_src': 'salt://openssh/files/sshd_config',
|
|
|
|
'banner': '/etc/ssh/banner',
|
|
|
|
'banner_src': 'salt://openssh/files/banner',
|
2015-03-26 17:50:32 +01:00
|
|
|
'dig_pkg': 'bind-tools',
|
|
|
|
'ssh_known_hosts': '/etc/ssh/ssh_known_hosts',
|
2015-03-23 14:55:40 +01:00
|
|
|
},
|
2015-03-23 14:56:12 +01:00
|
|
|
'Gentoo': {
|
|
|
|
'server': 'net-misc/openssh',
|
|
|
|
'client': 'net-misc/openssh',
|
|
|
|
'service': 'sshd',
|
|
|
|
'sshd_config': '/etc/ssh/sshd_config',
|
|
|
|
'sshd_config_src': 'salt://openssh/files/sshd_config',
|
|
|
|
'banner': '/etc/ssh/banner',
|
|
|
|
'banner_src': 'salt://openssh/files/banner',
|
2015-03-26 17:50:32 +01:00
|
|
|
'dig_pkg': 'net-dns/bind-tools',
|
|
|
|
'ssh_known_hosts': '/etc/ssh/ssh_known_hosts',
|
2015-03-23 14:56:12 +01:00
|
|
|
},
|
2015-03-23 14:55:40 +01:00
|
|
|
'RedHat': {
|
|
|
|
'server': 'openssh-server',
|
|
|
|
'client': 'openssh',
|
2014-12-08 21:43:40 +01:00
|
|
|
'service': 'sshd',
|
|
|
|
'sshd_config': '/etc/ssh/sshd_config',
|
|
|
|
'sshd_config_src': 'salt://openssh/files/sshd_config',
|
|
|
|
'banner': '/etc/ssh/banner',
|
|
|
|
'banner_src': 'salt://openssh/files/banner',
|
2015-03-26 17:50:32 +01:00
|
|
|
'dig_pkg': 'bind-utils',
|
|
|
|
'ssh_known_hosts': '/etc/ssh/ssh_known_hosts',
|
2015-01-01 00:44:17 +01:00
|
|
|
},
|
2015-03-23 14:55:40 +01:00
|
|
|
'Suse': {
|
2015-01-01 00:44:17 +01:00
|
|
|
'server': 'openssh',
|
|
|
|
'client': 'openssh',
|
2015-03-23 14:55:40 +01:00
|
|
|
'service': 'sshd',
|
2015-01-01 00:44:17 +01:00
|
|
|
'sshd_config': '/etc/ssh/sshd_config',
|
|
|
|
'sshd_config_src': 'salt://openssh/files/sshd_config',
|
|
|
|
'banner': '/etc/ssh/banner',
|
|
|
|
'banner_src': 'salt://openssh/files/banner',
|
2015-03-26 17:50:32 +01:00
|
|
|
'dig_pkg': 'bind-utils',
|
|
|
|
'ssh_known_hosts': '/etc/ssh/ssh_known_hosts',
|
2015-01-01 00:44:17 +01:00
|
|
|
},
|
2014-01-04 01:54:51 +01:00
|
|
|
}, merge=salt['pillar.get']('openssh:lookup')) %}
|