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

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
主站蜘蛛池模板: 吴堡县| 威远县| 当涂县| 崇礼县| 梁山县| 溆浦县| 从江县| 儋州市| 普兰县| 济源市| 六安市| 临西县| 孝义市| 西青区| 新源县| 汨罗市| 丽水市| 绥滨县| 互助| 六枝特区| 驻马店市| 盘山县| 榕江县| 河津市| 宁乡县| 滦平县| 麟游县| 通化市| 康定县| 平度市| 安西县| 定州市| 平潭县| 绥宁县| 扎囊县| 靖州| 金坛市| 西平县| 罗江县| 澄江县| 都兰县|