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

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.

主站蜘蛛池模板: 灵宝市| 清河县| 启东市| 高台县| 宿松县| 新和县| 全南县| 舞钢市| 天气| 芷江| 潢川县| 工布江达县| 庆安县| 宝坻区| 岐山县| 内黄县| 澄迈县| 铜陵市| 营口市| 区。| 太湖县| 鹰潭市| 威信县| 潮州市| 北碚区| 安龙县| 灵川县| 正阳县| 南丰县| 鹿泉市| 开阳县| 岱山县| 石景山区| 喀什市| 金塔县| 花莲市| 涪陵区| 巴林左旗| 吉隆县| 澳门| 揭阳市|