added custom fact apt_running
This commit is contained in:
parent
507d5448c8
commit
92d2d7be5f
1 changed files with 7 additions and 0 deletions
7
lib/facter/apt_running.rb
Normal file
7
lib/facter/apt_running.rb
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
Facter.add("apt_running") do
|
||||||
|
setcode do
|
||||||
|
#Facter::Util::Resolution.exec('/usr/bin/dpkg -s mysql-server >/dev/null 2>&1 && echo true || echo false')
|
||||||
|
Facter::Util::Resolution.exec('pgrep apt-get >/dev/null 2>&1 && echo true || echo false')
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue