summaryrefslogtreecommitdiff
path: root/lib/facter
diff options
context:
space:
mode:
authorDavid Schmitt <david.schmitt@puppetlabs.com>2015-09-28 10:09:17 +0100
committerDavid Schmitt <david.schmitt@puppetlabs.com>2015-09-28 10:09:17 +0100
commit39e81aa8b51c6562e498cdc562826eee470d841e (patch)
treeb4a9c1f5a202d76393522036bca87a8e225d332a /lib/facter
parent4d1bca3359519e6303d9b3543c56426606c8eba3 (diff)
parent440245d40d90f5f5cd9d7db0131371969216e55c (diff)
downloadpuppet-stdlib-39e81aa8b51c6562e498cdc562826eee470d841e.tar.gz
puppet-stdlib-39e81aa8b51c6562e498cdc562826eee470d841e.tar.bz2
Merge pull request #531 from asasfu/improvement/service_provider_fact
fixup-PR#506 Speed improvements in facter resolution
Diffstat (limited to 'lib/facter')
-rw-r--r--lib/facter/service_provider.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/facter/service_provider.rb b/lib/facter/service_provider.rb
index 54db937..a117921 100644
--- a/lib/facter/service_provider.rb
+++ b/lib/facter/service_provider.rb
@@ -7,6 +7,9 @@
#
# Caveats:
#
+require 'puppet/type'
+require 'puppet/type/service'
+
Facter.add(:service_provider) do
setcode do
Puppet::Type.type(:service).newservice(:name => 'dummy')[:provider].to_s