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

Creating and distributing the type

The best way to create and distribute a new custom type is to place it into a module, in the puppet/type subdirectory of the lib directory, and it will then be distributed to the agent machine via pluginsync, as we already saw with custom facts in the previous section.

The filename should match the name of the type under development, as shown in the following code:

 <modulepath>/lib/puppet/type/mynewtype.rb

Puppet::Type.newtype(:mynewtype) do
...
end
主站蜘蛛池模板: 玛曲县| 灵山县| 巴林左旗| 郎溪县| 贵德县| 上虞市| 延津县| 屏山县| 荃湾区| 洪泽县| 沁水县| 保靖县| 瑞金市| 开远市| 江孜县| 札达县| 西充县| 依兰县| 泰兴市| 晋城| 青龙| 当雄县| 砚山县| 天长市| 定兴县| 富平县| 牡丹江市| 丹阳市| 察隅县| 慈溪市| 平利县| 磐石市| 东阳市| 贵定县| 苏尼特右旗| 铜山县| 巴青县| 汾西县| 崇仁县| 平罗县| 绥中县|