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

Types and providers

Puppet already has a very rich lexicon of built-in resource types (see https://puppet.com/docs/puppet/5.3/type.html), and these have also been extended with additional modules. Windows-specific resource types would be a very good example of where Puppet has had its resource types successfully extended (see https://puppet.com/docs/puppet/5.3/resources_windows_optional.html).

The following are some indications that you may want to consider writing a type and provider as an alternative to regular modules and manifests in Puppet DSL:

  • You have several exec statements in your Puppet DSL with convoluted onlyif and unless conditional properties
  • Puppet doesn't handle situation very well where:
    • Your Puppet DSL is not a powerful-enough API, and you need access to pure Ruby to manipulate data
    • Your Puppet DSL code has significant and quite convoluted conditional logic
主站蜘蛛池模板: 招远市| 呼伦贝尔市| 永昌县| 泸西县| 镇坪县| 常宁市| 商都县| 吉首市| 平谷区| 吴旗县| 庆元县| 察哈| 阳朔县| 客服| 武鸣县| 乌什县| 湘潭县| 渭南市| 肇源县| 岳阳县| 万山特区| 鄂托克前旗| 化隆| 绥化市| 海阳市| 舞阳县| 凤翔县| 亚东县| 山东| 昔阳县| 香河县| 高平市| 满洲里市| 原阳县| 盘锦市| 枞阳县| 集安市| 河源市| 宜阳县| 汉川市| 铁岭市|