我想在應用配置時打印一些消息和變量值。 我也想分開不同配置塊的輸出視覺。所以我用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? –