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

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
主站蜘蛛池模板: 义马市| 义乌市| 定襄县| 安仁县| 营山县| 元阳县| 西乡县| 神农架林区| 桐庐县| 黔西县| 常德市| 理塘县| 黄梅县| 许昌市| 洮南市| 兖州市| 寿阳县| 商城县| 神池县| 洞口县| 全州县| 射洪县| 林周县| 阜新市| 沂水县| 威远县| 道孚县| 德昌县| 惠水县| 贺州市| 赣州市| 陆河县| 盐亭县| 双流县| 容城县| 长寿区| 宜良县| 九寨沟县| 伊金霍洛旗| 茂名市| 金平|