From 57443597cab736db1596208ed829d83589808d90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Thu, 17 Jan 2013 14:57:45 +0200 Subject: [PATCH] Added ipaddress to host_aliases in ssh::known_hosts. --- ssh/manifests/init.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"], }