X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fdebian-org%2Flib%2Ffacter%2Fpaths.rb;h=e48fb600fa58dace3601cade368b7a4d5bcd08c4;hb=2962d317313499eb88e8496fa672bf217f1bca2f;hp=6e991f0abf19c986204165859de81fe07069c48e;hpb=6554b6b851994f4f5ba948d72522ee5da19a491b;p=mirror%2Fdsa-puppet.git diff --git a/modules/debian-org/lib/facter/paths.rb b/modules/debian-org/lib/facter/paths.rb index 6e991f0ab..e48fb600f 100644 --- a/modules/debian-org/lib/facter/paths.rb +++ b/modules/debian-org/lib/facter/paths.rb @@ -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