projects
/
mirror
/
dsa-puppet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70582a1
)
Add zebra and bgpd facters
author
Peter Palfrader
<peter@palfrader.org>
Mon, 8 Jan 2018 09:52:41 +0000
(10:52 +0100)
committer
Peter Palfrader
<peter@palfrader.org>
Mon, 8 Jan 2018 09:52:41 +0000
(10:52 +0100)
modules/debian_org/lib/facter/software.rb
patch
|
blob
|
history
diff --git
a/modules/debian_org/lib/facter/software.rb
b/modules/debian_org/lib/facter/software.rb
index
58318fe
..
169436a
100644
(file)
--- a/
modules/debian_org/lib/facter/software.rb
+++ b/
modules/debian_org/lib/facter/software.rb
@@
-162,3
+162,13
@@
Facter.add("haveged") do
FileTest.exist?("/usr/sbin/haveged")
end
end
+Facter.add("bgpd") do
+ setcode do
+ FileTest.exist?("/usr/sbin/bgpd")
+ end
+end
+Facter.add("zebra") do
+ setcode do
+ FileTest.exist?("/usr/sbin/zebra")
+ end
+end