66e118a92a
This returns the default provider Puppet will choose to manage services on this system by instantiating a dummy service resource type and returning the provider chosen. Co-Authored-By: Simon Fraser University <asa188@sfu.ca>
14 lines
350 B
Ruby
14 lines
350 B
Ruby
# Fact: service_provider
|
|
#
|
|
# Purpose: Returns the default provider Puppet will choose to manage services
|
|
# on this system
|
|
#
|
|
# Resolution: Instantiates a dummy service resource and return the provider
|
|
#
|
|
# Caveats:
|
|
#
|
|
Facter.add(:service_provider) do
|
|
setcode do
|
|
Puppet::Type.type(:service).newservice(:name => 'dummy')[:provider].to_s
|
|
end
|
|
end
|