- Mastering Puppet 5
- Ryan Russell Yates Jason Southgate
- 65字
- 2021-07-16 17:46:16
Using arrays to assign a list of values to an attribute
When the expected value of an attribute is an array, the array_matching option should be included in the call to newproperty with a value of all. All values of the array are then used for that attribute, as shown in the following code:
Puppet::Type.newtype(:mynewtype) do
...
newproperty(:myarray, :array_matching => :all) do
end
...
end
推薦閱讀
- 通信網(wǎng)圖論及應(yīng)用
- 通信網(wǎng)絡(luò)智能管道架構(gòu)與技術(shù)實(shí)現(xiàn)
- 智慧城市:城市品質(zhì)新思維
- 快修巧修新型手機(jī)(修訂版)
- 數(shù)據(jù)鏈理論與系統(tǒng)
- 液晶顯示器維修實(shí)踐技術(shù)
- 印制電路組件裝焊工藝與技術(shù)
- 自動(dòng)駕駛電動(dòng)汽車的計(jì)算與通信架構(gòu):車載網(wǎng)絡(luò)通信架構(gòu)
- 鴻蒙征途:App開發(fā)實(shí)戰(zhàn)
- 基于加權(quán)多維標(biāo)度的無線信號定位理論與方法
- 現(xiàn)代通信原理與技術(shù)
- 石墨烯傳感器及其在物聯(lián)網(wǎng)中的應(yīng)用
- 電子工藝與品質(zhì)管理
- 圖表細(xì)說電子元器件
- 軟件創(chuàng)富密碼:iPhone應(yīng)用程序開發(fā)攻略之深入淺出Objective-C 2.0