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:
de070dd
)
rsyncd software facter
author
Peter Palfrader
<peter@palfrader.org>
Fri, 3 Dec 2010 11:06:31 +0000
(12:06 +0100)
committer
Peter Palfrader
<peter@palfrader.org>
Fri, 3 Dec 2010 11:06:31 +0000
(12:06 +0100)
facts/software.rb
patch
|
blob
|
history
diff --git
a/facts/software.rb
b/facts/software.rb
index
e622d35
..
3a0fefc
100644
(file)
--- a/
facts/software.rb
+++ b/
facts/software.rb
@@
-72,3
+72,8
@@
Facter.add("syslogversion") do
%x{dpkg-query -W -f='${Version}\n' syslog-ng | cut -b1}.chomp
end
end
+Facter.add("rsyncd") do
+ setcode do
+ FileTest.exist?("/etc/rsyncd.conf")
+ end
+end