diff options
author | varac <varacanero@zeromail.org> | 2013-04-14 13:25:21 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-04-14 13:25:21 +0200 |
commit | fb19032afc0da5b4d9c6c40ae277173905b4454e (patch) | |
tree | 73731eddb479e418bcb64a2d2b218b1bf007dabb /lib | |
parent | 1ff5a86f5922df3de9a2bcc4b02f8925a7ef17ec (diff) | |
parent | 6bf7a6ab5d6e63f75c94f49aa0f12959e954efa8 (diff) | |
download | puppet-apt-fb19032afc0da5b4d9c6c40ae277173905b4454e.tar.gz puppet-apt-fb19032afc0da5b4d9c6c40ae277173905b4454e.tar.bz2 |
Merge branch 'master' of code.leap.se:puppet_apt into nadir_master
Diffstat (limited to 'lib')
-rw-r--r-- | lib/facter/apt_running.rb | 7 |
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 + |