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

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
主站蜘蛛池模板: 乌拉特前旗| 永康市| 腾冲县| 呼和浩特市| 澄迈县| 江川县| 八宿县| 武宣县| 新兴县| 安吉县| 卢湾区| 横山县| 凯里市| 南雄市| 安达市| 延长县| 分宜县| 定结县| 新民市| 永善县| 梅河口市| 会宁县| 临朐县| 祥云县| 民勤县| 深水埗区| 青阳县| 剑河县| 乌苏市| 临城县| 大余县| 深圳市| 宜良县| 安康市| 志丹县| 巧家县| 夹江县| 盐源县| 琼结县| 庆元县| 衡阳市|