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

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.

主站蜘蛛池模板: 屯门区| 沈丘县| 开原市| 深水埗区| 吴旗县| 腾冲县| 石楼县| 东港市| 鄱阳县| 榕江县| 太原市| 丰县| 宁波市| 宁乡县| 湄潭县| 雷波县| 宁津县| 石屏县| 加查县| 城口县| 株洲县| 迁安市| 巫山县| 田阳县| 靖江市| 兴海县| 阜新| 天等县| 阜南县| 南皮县| 子洲县| 山东| 西林县| 博野县| 湟源县| 辉县市| 西和县| 台安县| 九江县| 炉霍县| 南木林县|