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

Adding module dependencies

Edit the module's metadata.json file to add module dependencies. See the following example:

"dependencies": [
{ "name":" stankevich/python",
"version_requirement":">= 1.18.x"
}
]

The name key is the name of the requirement, namely, "pe" or "puppet". The version_requirement key is a semver (http://semver.org) value or range. See the following examples:

  • 1.18.0
  • 1.18.x
  • >= 1.18.x
  • >=1.18.x <2.x.x

These would all be valid values for version_requirement.

Check the metadata.json file for validity afterwards using the new PDK command, as follows:

$ pdk validate metadata

The great thing about adding module dependencies is the fact that, when you run the puppet module download command, Puppet will download all the module dependencies accordingly.

主站蜘蛛池模板: 富阳市| 崇文区| 长顺县| 称多县| 屏东市| 金平| 奇台县| 连山| 天台县| 九江县| 北京市| 府谷县| 台江县| 柞水县| 德惠市| 青神县| 永安市| 三门县| 喀喇沁旗| 河池市| 望江县| 邵东县| 台北市| 揭西县| 墨竹工卡县| 梁山县| 确山县| 晋宁县| 沧州市| 崇文区| 衡南县| 额敏县| 伽师县| 灌云县| 固镇县| 林甸县| 康平县| 鹰潭市| 留坝县| 保山市| 东阳市|