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

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

主站蜘蛛池模板: 太白县| 萝北县| 虎林市| 杨浦区| 武宣县| 紫金县| 南郑县| 吴堡县| 双桥区| 芦溪县| 龙岩市| 教育| 石渠县| 东安县| 孟连| 福州市| 应用必备| 增城市| 屏东市| 怀集县| 建始县| 桃园县| 凤山县| 温宿县| 桓台县| 楚雄市| 阿坝| 福安市| 青岛市| 潼关县| 建平县| 武宣县| 临高县| 新泰市| 昌乐县| 莱阳市| 新余市| 双鸭山市| 资溪县| 浦城县| 叶城县|