added custom fact apt_running

This commit is contained in:
varac 2013-01-20 17:32:02 +01:00
parent 507d5448c8
commit 92d2d7be5f

View 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