summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-01-20 17:32:02 +0100
committervarac <varacanero@zeromail.org>2013-01-20 17:32:02 +0100
commit92d2d7be5f99920c67245d02c1ce76288967db62 (patch)
treec3cad431e70b00f226c3f15ada95ed0d49a897ff /lib
parent507d5448c85904d6471e829d3afe00cff89e7520 (diff)
added custom fact apt_running
Diffstat (limited to 'lib')
-rw-r--r--lib/facter/apt_running.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/facter/apt_running.rb b/lib/facter/apt_running.rb
new file mode 100644
index 0000000..e8f2156
--- /dev/null
+++ b/lib/facter/apt_running.rb
@@ -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
+