我想在应用配置时打印一些消息和变量值。 我也想分开不同配置块的输出视觉。所以我用Puppet:禁用通知命令的回显
notify {"\n\nINSTALL TOMCAT TO $target_folder":}
如木偶tutorials和documentation说明。
不幸的是,输出并没有真正增加可读性整个日志:
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。
我们必须添加--logdest:syslog? –