2012-06-28 32 views
2

我想在应用配置时打印一些消息和变量值。 我也想分开不同配置块的输出视觉。所以我用Puppet:禁用通知命令的回显

notify {"\n\nINSTALL TOMCAT TO $target_folder":} 

如木偶tutorialsdocumentation说明。

不幸的是,输出并没有真正增加可读性整个日志:

notice: 

INSTALL TOMCAT TO /opt/example/uiserver 
notice: /Stage[main]//Node[dev-xyz.example.com]/Tomcat[uiserver_tomcat]/Notify[ 

INSTALL TOMCAT TO /opt/example/uiserver] 

INSTALL TOMCAT TO /opt/example/uiserver' 

问题 - 而不是仅仅打印消息,木偶也输出一个恼人的回声/message: defined 'message' as '。有什么办法可以消除它吗?

使用withpath => false没有帮助。

木偶2.7.17。

回答

3

Set --logdest to syslog。 默认为console

--logdest: 
    Where to send messages. Choose between syslog, the console, and a log 
    file. Defaults to sending messages to the console. 
+1

我们必须添加--logdest:syslog? –