- 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
推薦閱讀
- 邊緣計(jì)算技術(shù)與應(yīng)用
- 基于集成學(xué)習(xí)的角反射體目標(biāo)雷達(dá)識別理論與方法
- 天空地一體化自組織網(wǎng)絡(luò)導(dǎo)航技術(shù)及應(yīng)用
- 液晶電視機(jī)檢修手冊
- 手繪圖說萬用表使用
- 數(shù)字新基建的大動(dòng)脈:光纜技術(shù)革新與管線施工
- 寬帶無線通信多址傳輸技術(shù)演進(jìn)
- 全程圖解變頻器應(yīng)用與檢測技能
- 微信公眾平臺與小程序開發(fā):從零搭建整套系統(tǒng)(第2版)
- 電子工藝與品質(zhì)管理
- Altium Designer 16基礎(chǔ)實(shí)例教程
- Protel DXP 2004入門與提高
- 移動(dòng)增值業(yè)務(wù)網(wǎng)絡(luò)及其運(yùn)營
- Microsoft Dynamics CRM 2011 Cookbook
- Android開發(fā)與應(yīng)用