Add support ssh configs from /etc/openssh.

In Altlinux system config dir for openssh is /etc/openssh.
This commit is contained in:
Alexey Shabalin 2016-01-14 13:01:49 +03:00
parent 0b32e1586d
commit 9be8ecda06
3 changed files with 10 additions and 5 deletions

View file

@ -536,6 +536,8 @@ class Facts(object):
keydir = '/etc/ssh'
else:
keydir = '/etc'
if self.facts['distribution'] == 'Altlinux':
keydir = '/etc/openssh'
else:
keydir = '/etc/ssh'

View file

@ -119,6 +119,7 @@ def not_in_host_file(self, host):
host_file_list.append(user_host_file)
host_file_list.append("/etc/ssh/ssh_known_hosts")
host_file_list.append("/etc/ssh/ssh_known_hosts2")
host_file_list.append("/etc/openssh/ssh_known_hosts")
hfiles_not_found = 0
for hf in host_file_list: