官术网_书友最值得收藏!

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

主站蜘蛛池模板: 北票市| 山阴县| 英德市| 大悟县| 榆树市| 田东县| 海伦市| 东兰县| 师宗县| 平定县| 星子县| 喜德县| 外汇| 崇明县| 颍上县| 揭西县| 通州区| 盘山县| 玉环县| 洪湖市| 泗水县| 仙游县| 宝清县| 昌江| 纳雍县| 资源县| 镇江市| 靖宇县| 晋中市| 武威市| 涟源市| 吴江市| 黑河市| 白河县| 宜阳县| 泽普县| 浠水县| 弥渡县| 洪泽县| 泰安市| 惠州市|