- Mastering Puppet 5
- Ryan Russell Yates Jason Southgate
- 87字
- 2021-07-16 17:46:15
Adding type parameters
Type parameters differ from properties in that they don't directly relate to actual discoverable and updatable resources on the underlying system. Rather, they do one of the two following things:
- Allow you to specify additional informational context for interacting with properties and resources on the underlying system
- Provide a layer of abstraction allowing you to override the expected behavior on the underlying system
Let's add a source parameter to our new type using the newparam method:
Puppet::Type.newtype(:mynewtype) do
...
newparam(:source) do
end
...
end
推薦閱讀
- 無線接入網(wǎng)同步性能測試技術(shù)
- 教你檢修液晶彩色電視機
- 步步圖解電子元器件應(yīng)用與檢測技能
- 快修巧修新型液晶平板電視機
- 通信工程綜合實訓(xùn)
- 5G大規(guī)模天線增強技術(shù)
- 5G網(wǎng)絡(luò)技術(shù)與規(guī)劃設(shè)計基礎(chǔ)
- 第一行代碼:Android(第3版)
- 電力通信光纜施工實訓(xùn)教程
- LED照明應(yīng)用基礎(chǔ)與實踐
- 有線數(shù)字電視網(wǎng)絡(luò)
- LED照明設(shè)計與案例精選
- 教你快速看懂電子電路圖
- 通信系統(tǒng)導(dǎo)論
- INSTANT Wireshark Starter