Puppet notify资源参数(二十八)


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
相关文章
相关标签/搜索