diff --git a/ssh/manifests/init.pp b/ssh/manifests/init.pp index 68cfab0..c47a78d 100644 --- a/ssh/manifests/init.pp +++ b/ssh/manifests/init.pp @@ -16,7 +16,10 @@ class ssh::known_hosts { ensure => present, type => rsa, key => $sshrsakey, - host_aliases => inline_template("<%= homename.split('.')[0] %>"), + host_aliases => [ + inline_template("<%= homename.split('.')[0] %>"), + $::ipaddress, + ], require => File["/etc/ssh/ssh_known_hosts"], }