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

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

主站蜘蛛池模板: 泗阳县| 普陀区| 乐东| 漯河市| 丹江口市| 甘孜县| 乌鲁木齐县| 台前县| 永福县| 黑水县| 富民县| 自治县| 新郑市| 建宁县| 邢台县| 永登县| 孙吴县| 军事| 会理县| 临颍县| 安国市| 高雄县| 叙永县| 科技| 霍邱县| 共和县| 安新县| 仙桃市| 平凉市| 如东县| 普格县| 崇义县| 合肥市| 阿坝县| 陵川县| 泰顺县| 防城港市| 峨山| 馆陶县| 沭阳县| 三明市|