调试人偶:如何在清单中显示可用模块?

Debugging puppet: how do I show the available modules in a manifest?

我的背景:

err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class missingmoduleclassname

我的问题:

因此,您想要的是在 puppet apply 编译阶段 期间打印的消息(还有目录应用阶段,但此处未达到,因为编译失败)。

有些 parser functions 允许:

  • 通知
  • 警告
  • 错误
  • 暴击
  • 出现

您可以将此添加到 mymodule class 正文的顶部:

notice "evaluating mymodule ..."

等对于每个单独的模块。

共识似乎是:没有办法轻松做到这一点!好吧。