傀儡模块的依赖

我想结识傀儡,所以这是我的问题。

在我想使用的模块中有一些包含,比如

include gcc include wget 

如果我只是安装这个模块,并在我的清单中使用它,我会得到一个错误,找不到这些模块的类。 至less这种情况发生在使用stream氓箱子的“傀儡”configuration上。 所以我也必须安装这些模块。

我还没有遇到文档说某个模块依赖于其他模块。 所以为了弄清楚我错过了什么,我必须运行一个错误的数字。

我做错了什么,或者为什么这是一个蹩脚的方法?

Puppet在$ modulepath中查找模块。 运行puppet config print modulepath找出path。

在你的情况下,这个文件必须存在:

  • $ modulepath / gcc / manifests / init.pp$ modulepath / gcc / manifests / gcc.pp
  • $ modulepath / wget / manifests / init.pp$ modulepath / wget / manifests / wget.pp