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

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

主站蜘蛛池模板: 平南县| 五寨县| 龙山县| 米林县| 南阳市| 古交市| 茌平县| 收藏| 方城县| 陆川县| 新源县| 郑州市| 渝中区| 福鼎市| 色达县| 余庆县| 永登县| 阳信县| 牟定县| 内丘县| 瑞安市| 阳东县| 秦安县| 沙河市| 固始县| 舒城县| 汤阴县| 虎林市| 海盐县| 松潘县| 平南县| 苍溪县| 资中县| 修武县| 肇源县| 达日县| 开江县| 凤翔县| 黔西| 北辰区| 昌平区|