aboutsummaryrefslogtreecommitdiff
path: root/lib/facter/apt_running.rb
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-05-26 14:29:46 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-05-26 14:29:46 -0300
commit869db00cde98be60850f1c61297756635b90fee1 (patch)
tree77b5eb78813dbf5f66c42fb114e2b513e7b9e950 /lib/facter/apt_running.rb
parent61fac2f15df901b5a213352024dd63e67f18ab18 (diff)
parent358d963f259d3f409bd0dd6433718a673083533c (diff)
downloadpuppet-apt-869db00cde98be60850f1c61297756635b90fee1.tar.gz
puppet-apt-869db00cde98be60850f1c61297756635b90fee1.tar.bz2
Merge branch 'nadir'
Diffstat (limited to 'lib/facter/apt_running.rb')
-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
+