projects
/
mirror
/
dsa-puppet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Also pin hp-health on blades
[mirror/dsa-puppet.git]
/
modules
/
debian-org
/
lib
/
facter
/
paths.rb
1
2
%w{/srv/build-trees
3
/srv/buildd
4
/etc/ssh/ssh_host_ed25519_key
5
/srv/mirrors/debian
6
/srv/mirrors/debian-debug
7
/srv/mirrors/debian-ports
8
/srv/mirrors/debian-security
9
/dev/hwrng
10
}.each do |path|
11
Facter.add("has" + path.gsub(/[\/-]/,'_')) do
12
setcode do
13
if FileTest.exist?(path)
14
true
15
else
16
''
17
end
18
end
19
end
20
end