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

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
主站蜘蛛池模板: 宿迁市| 娄烦县| 沙洋县| 无锡市| 米林县| 深州市| 邵武市| 眉山市| 高平市| 察雅县| 博客| 交口县| 镇江市| 江永县| 玉田县| 三明市| 鱼台县| 科技| 阳曲县| 积石山| 抚顺市| 嘉善县| 枣强县| 丰原市| 澄城县| 靖远县| 武定县| 普兰县| 金沙县| 济源市| 监利县| 大方县| 全椒县| 勃利县| 钟山县| 定兴县| 钟祥市| 苍山县| 田阳县| 仪征市| 应城市|