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=e48fb600fa58dace3601cade368b7a4d5bcd08c4;hpb=2962d317313499eb88e8496fa672bf217f1bca2f;p=mirror%2Fdsa-puppet.git diff --git a/modules/debian-org/lib/facter/paths.rb b/modules/debian-org/lib/facter/paths.rb index e48fb600f..b8b7b0641 100644 --- a/modules/debian-org/lib/facter/paths.rb +++ b/modules/debian-org/lib/facter/paths.rb @@ -16,6 +16,15 @@ 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")