Added fact which checks if ruby augeas libs are installed.
This commit is contained in:
parent
dc3e87139c
commit
2bfbe82367
1 changed files with 11 additions and 0 deletions
11
custom/lib/facter/augeas.rb
Normal file
11
custom/lib/facter/augeas.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
|
||||
Facter.add("augeas") do
|
||||
setcode do
|
||||
begin
|
||||
require "augeas.rb"
|
||||
true
|
||||
rescue LoadError
|
||||
false
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Reference in a new issue