source: other-projects/hathitrust/vagrant-solr-cluster/trunk/modules/stdlib/lib/facter/service_provider.rb@ 30960

Last change on this file since 30960 was 30960, checked in by davidb, 8 years ago

Switch to using Puppet to provision machine. Strongly based on files developed for spark-hdfs cluster

File size: 403 bytes
Line 
1# Fact: service_provider
2#
3# Purpose: Returns the default provider Puppet will choose to manage services
4# on this system
5#
6# Resolution: Instantiates a dummy service resource and return the provider
7#
8# Caveats:
9#
10require 'puppet/type'
11require 'puppet/type/service'
12
13Facter.add(:service_provider) do
14 setcode do
15 Puppet::Type.type(:service).newservice(:name => 'dummy')[:provider].to_s
16 end
17end
Note: See TracBrowser for help on using the repository browser.