notify資源web
notify資源主要用於輸出puppet的輔助提示信息,在puppet的執行過程當中經過這些輔助信息瞭解執行的過程,它並不會改變任何操做狀態.bash
參數:app
notify { 'resource title': name => # (namevar) An arbitrary tag for your own reference; the... message => # The message to be sent to the... withpath => # Whether to show the full object path. Defaults... # ...plus any applicable metaparameters. }
name:標示名.dom
messages:輸出描述信息.ide
withpath:是否顯示完整對象路徑。spa
示例:對象
[root@sh-web1 ~]# cat notify.pp $sum = 8 + 4 notify {"sum": message => "${sum}", withpath => true, }
運行結果:資源
[root@sh-web1 ~]# puppet apply notify.pp Notice: Compiled catalog for sh-web1.localdomain in environment production in 0.05 seconds Notice: /Stage[main]/Main/Notify[sum]/message: 12 Notice: /Stage[main]/Main/Notify[sum]/message: defined 'message' as '12' Notice: Finished catalog run in 0.03 seconds