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

  • 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
主站蜘蛛池模板: 兴和县| 渝北区| 耒阳市| 高阳县| 奇台县| 望都县| 吉隆县| 忻州市| 大英县| 锡林郭勒盟| 大石桥市| 唐山市| 常德市| 合水县| 潞西市| 海晏县| 新民市| 镇赉县| 吉林省| 芦溪县| 定南县| 鄂州市| 周口市| 济南市| 仙游县| 乌鲁木齐市| 县级市| 樟树市| 鹿泉市| 呼图壁县| 上饶市| 文昌市| 阜平县| 昌邑市| 阿图什市| 娄底市| 焦作市| 丰都县| 亳州市| 县级市| 九龙县|