2012-06-28 18 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? –