官术网_书友最值得收藏!

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
主站蜘蛛池模板: 汝城县| 屏边| 稷山县| 田东县| 玛纳斯县| 肇州县| 冕宁县| 宜宾市| 张家口市| 大港区| 习水县| 建平县| 元江| 桂阳县| 云林县| 含山县| 丹凤县| 五莲县| 宁津县| 清原| 阜阳市| 桂林市| 葫芦岛市| 卢氏县| 乌鲁木齐县| 罗城| 长子县| 宁津县| 长葛市| 柞水县| 阜康市| 襄垣县| 津南区| 孟连| 梨树县| 东阿县| 邵阳市| 蒙山县| 万州区| 兴文县| 沛县|