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

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
主站蜘蛛池模板: 分宜县| 金平| 兰西县| 广德县| 西贡区| 肃南| 营山县| 留坝县| 邯郸市| 乌苏市| 阳泉市| 灵寿县| 耿马| 紫云| 定西市| 佛教| 石嘴山市| 建平县| 鄂温| 民和| 涿鹿县| 高要市| 安陆市| 濮阳市| 平遥县| 施秉县| 洮南市| 铜川市| 宜丰县| 西乌| 四会市| 晋中市| 汕头市| 潞城市| 泸溪县| 普兰县| 开平市| 元谋县| 贺兰县| 江山市| 沂水县|