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

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
主站蜘蛛池模板: 望城县| 施甸县| 华宁县| 门源| 绥江县| 建瓯市| 翼城县| 日喀则市| 益阳市| 石林| 美姑县| 肇州县| 边坝县| 凉城县| 滁州市| 商南县| 建瓯市| 河池市| 磴口县| 岳普湖县| 连州市| 措勤县| 新巴尔虎左旗| 理塘县| 普宁市| 额敏县| 涿鹿县| 邵武市| 原阳县| 鹤壁市| 河南省| 象州县| 台前县| 惠州市| 鄢陵县| 宁海县| 安吉县| 阳原县| 昌江| 赤壁市| 靖安县|