Puppet 使用清单抑制cron资源消息

Puppet 使用清单抑制cron资源消息,puppet,Puppet,当我通过在crontab文件上打印下面的消息来配置cron时 # HEADER: This file was autogenerated at <date> by puppet. # HEADER: While it can still be managed manually, it is definitely not recommended. # HEADER: Note particularly that the comments starting with 'Puppet Na

当我通过在crontab文件上打印下面的消息来配置cron时

# HEADER: This file was autogenerated at <date> by puppet.
# HEADER: While it can still be managed manually, it is definitely not recommended.
# HEADER: Note particularly that the comments starting with 'Puppet Name' should
# HEADER: not be deleted, as doing so could cause duplicate cron jobs.
#头:此文件由puppet在自动生成。
#页眉:虽然仍然可以手动管理,但绝对不建议使用。
#标题:请特别注意,以“Puppet Name”开头的注释应
#标题:不能删除,因为这样做可能会导致重复的cron作业。

是否仍有禁止此消息的方法?

除非您在之后执行资源删除这些行,否则不会。这没关系。如果可能的话,我至少可以将该消息隐藏在新邮件中servers@MattSchuchard你确定吗?非常确定,如果您使用puppet的内置cron资源,它将显示该消息。然后做一个资源会让你进入一个循环,这个循环会击败木偶的幂等性质,@ptierno我没说这是个好主意,只是说这是可能的。可能是我这样做的原因之一,只是作为评论而不是回答。