0.5
app-cordova
debian/bullseye
debian/jessie
|
Last change
on this file since c75e30b was 1c22429, checked in by Joachim Langenbach <joachim.langenbach@…>, 10 years ago |
- gnuboat_epd adds the apt repository from gnuboat to install epd-fuse package
|
-
Property mode
set to
100644
|
|
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.