- Mastering Puppet 5
- Ryan Russell Yates Jason Southgate
- 69字
- 2021-07-16 17:46:17
Creating and distributing the provider
The best way to create and distribute a new provider for your type is to place it into the same module, in the puppet/provider/<typename> subdirectory of the lib directory, and it will then be distributed to the agent machine via pluginsync. Note that the filename should match the name of the provider, as shown in the following code:
# <modulepath>/lib/puppet/provider/mynewtype/myprovider.rb
Puppet::Type.type(:mynewtype).provide(:myprovider) do
...
end
推薦閱讀
- 用萬用表檢修液晶電視機一學(xué)就會
- 電子線路CAD與實訓(xùn)
- 智能光網(wǎng)絡(luò)技術(shù)及應(yīng)用
- 車聯(lián)網(wǎng)
- 電子產(chǎn)品結(jié)構(gòu)工藝
- LTE無線網(wǎng)絡(luò)優(yōu)化實踐
- 無線網(wǎng)絡(luò)優(yōu)化分析
- 光纜與光設(shè)備維護
- 寬帶光接入技術(shù)
- 5G大規(guī)模天線增強技術(shù)
- 5G網(wǎng)絡(luò)技術(shù)與規(guī)劃設(shè)計基礎(chǔ)
- 陣列信號處理及MATLAB實現(xiàn)(第2版)
- 電子工藝實習(xí)
- 光傳送網(wǎng)(OTN)技術(shù)、設(shè)備及工程應(yīng)用
- 5G改變世界