Create ssh ed25519 hostkeys on jessie
[mirror/dsa-puppet.git] / modules / debian-org / lib / facter / paths.rb
index 6e991f0..e48fb60 100644 (file)
@@ -16,3 +16,12 @@ Facter.add("has_srv_buildd") do
                end
        end
 end
+Facter.add("has_etc_ssh_ssh_host_ed25519_key") do
+       setcode do
+               if FileTest.exist?("/etc/ssh/ssh_host_ed25519_key")
+                       true
+               else
+                       ''
+               end
+       end
+end