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

  • Mastering Puppet 5
  • Ryan Russell Yates Jason Southgate
  • 126字
  • 2021-07-16 17:46:14

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
主站蜘蛛池模板: 辛集市| 天津市| 嘉定区| 富平县| 大邑县| 博兴县| 安化县| 敦煌市| 天门市| 阿图什市| 安顺市| 肥城市| 北京市| 舟曲县| 本溪| 普宁市| 莆田市| 威信县| 青浦区| 桂东县| 保山市| 桓仁| 静安区| 溆浦县| 呼玛县| 新营市| 永嘉县| 元阳县| 土默特右旗| 芜湖县| 汝州市| 离岛区| 梅河口市| 富锦市| 微山县| 阿图什市| 龙泉市| 泌阳县| 海南省| 海晏县| 桃园县|