- Mastering Puppet 5
- Ryan Russell Yates Jason Southgate
- 77字
- 2021-07-16 17:46:15
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
推薦閱讀
- 5G無線接入網(wǎng)架構(gòu)及關(guān)鍵技術(shù)
- 電子線路CAD與實訓(xùn)
- 圖解電子技術(shù)速學(xué)速用
- 中文版Premiere Pro CC 2018基礎(chǔ)培訓(xùn)教程(全彩版)
- 天線測量實用手冊(第2版)
- 數(shù)據(jù)鏈理論與系統(tǒng)
- 5G技術(shù)與應(yīng)用
- 移動Ad Hoc網(wǎng)絡(luò)
- 21堂課精通液晶電視機檢修
- 電子產(chǎn)品維修實用手冊
- 索尼新型彩色電視機速修圖解
- 智能手機軟硬件維修從入門到精通
- 多媒體通信技術(shù)與應(yīng)用
- 電氣控制及變頻技術(shù)應(yīng)用
- 開關(guān)電源設(shè)計與維修從入門到精通