Puppet 不断推送 .swp 文件

Puppet 不断推送 .swp 文件

我们当前的设置有一个清单/站点.pp我们所有模块都包含以下内容

File {
  ignore => ['.swp'],
}

然而,当在客户端运行 puppet 时,它仍然会尝试推送.swp文件。

Info: Using configured environment 'production'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Applying configuration version '1584008633'
Notice: /Stage[main]/Nginx::Abstract/File[/etc/nginx/sites-available/.amazingnameindeed.conf.swp]/ensure: current_value absent, should be file (noop)
Notice: /etc/nginx: Would have triggered 'refresh' from 1 events
Notice: Class[Nginx::Abstract]: Would have triggered 'refresh' from 1 events
Notice: Stage[main]: Would have triggered 'refresh' from 1 events
Notice: Applied catalog in 3.72 seconds

根据https://puppet.com/docs/puppet/5.5/types/file.html#file-attribute-ignore这应该使我们所有的模块忽略.swp 文件?

相关内容