X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fdebian-org%2Flib%2Ffacter%2Fpaths.rb;h=b8b7b06410f985de23007c2dd11f6296d0019627;hb=9d16a7530807bab987ff86e9f4fb3bbfec9feeb8;hp=6e991f0abf19c986204165859de81fe07069c48e;hpb=ea3a5fb80c7d8a582f150921b9f7247e01c5e27d;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..b8b7b0641 100644 --- a/modules/debian-org/lib/facter/paths.rb +++ b/modules/debian-org/lib/facter/paths.rb @@ -16,3 +16,21 @@ Facter.add("has_srv_buildd") do end end end +Facter.add("has_srv_buildd") do + setcode do + if FileTest.exist?("/srv/buildd") + true + else + '' + 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