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

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
主站蜘蛛池模板: 长岛县| 越西县| 虎林市| 定襄县| 伊吾县| 汕头市| 临洮县| 拜泉县| 泉州市| 鄄城县| 公主岭市| 江西省| 遂平县| 博罗县| 招远市| 化州市| 安宁市| 乌鲁木齐市| 上饶县| 马鞍山市| 青浦区| 碌曲县| 凭祥市| 临澧县| 南溪县| 中超| 休宁县| 庆元县| 南郑县| 余江县| 和硕县| 秦皇岛市| 德兴市| 黔东| 略阳县| 梁山县| 夏津县| 奉新县| 萨嘎县| 大田县| 夹江县|