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

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.

主站蜘蛛池模板: 宜兴市| 新闻| 皮山县| 威海市| 乐亭县| 南雄市| 通化县| 新泰市| 舞阳县| 稻城县| 交城县| 丰城市| 莎车县| 庆元县| 南安市| 宜城市| 筠连县| 汕头市| 彝良县| 和平县| 蒙城县| 监利县| 宣恩县| 延吉市| 沽源县| 潞城市| 凤翔县| 田阳县| 汽车| 台北县| 绥阳县| 华安县| 曲靖市| 芦溪县| 加查县| 乐平市| 平和县| 丹巴县| 乌鲁木齐县| 阿克陶县| 白银市|