Creating and distributing the provider

The best way to create and distribute a new provider for your type is to place it into the same module, in the puppet/provider/<typename> subdirectory of the lib directory, and it will then be distributed to the agent machine via pluginsync. Note that the filename should match the name of the provider, as shown in the following code:

# <modulepath>/lib/puppet/provider/mynewtype/myprovider.rb

Puppet::Type.type(:mynewtype).provide(:myprovider) do
...
end
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.15.148.187