projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Create ssh ed25519 hostkeys on jessie
[mirror/dsa-puppet.git]
/
modules
/
debian-org
/
lib
/
facter
/
paths.rb
diff --git
a/modules/debian-org/lib/facter/paths.rb
b/modules/debian-org/lib/facter/paths.rb
index
6e991f0
..
e48fb60
100644
(file)
--- 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
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