Last change
on this file since 30903 was 30903, checked in by davidb, 8 years ago |
Vagrant provisioning files for a 4-node Hadoop cluster. See README.txt for more details
|
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 | #
|
---|
10 | require 'puppet/type'
|
---|
11 | require 'puppet/type/service'
|
---|
12 |
|
---|
13 | Facter.add(:service_provider) do
|
---|
14 | setcode do
|
---|
15 | Puppet::Type.type(:service).newservice(:name => 'dummy')[:provider].to_s
|
---|
16 | end
|
---|
17 | end
|
---|
Note:
See
TracBrowser
for help on using the repository browser.