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

  • Mastering Puppet 5
  • Ryan Russell Yates Jason Southgate
  • 69字
  • 2021-07-16 17:46:17

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
主站蜘蛛池模板: 香河县| 边坝县| 无极县| 长武县| 永顺县| 二连浩特市| 定州市| 四子王旗| 哈巴河县| 台北市| 梁平县| 兰西县| 云梦县| 白水县| 金昌市| 修水县| 阳春市| 常德市| 扶沟县| 庆云县| 商城县| 黔江区| 蕲春县| 益阳市| 诸暨市| 五常市| 陆良县| 卓尼县| 建水县| 韶山市| 舞钢市| 合江县| 兴安盟| 萝北县| 错那县| 德江县| 嫩江县| 澄江县| 郯城县| 辽阳县| 綦江县|