什么木偶资源types需要一个审计元参数来强制傀儡pipe理资源,如果它被删除?
直到最近,我还是觉得仅仅声明一个具有各种属性的资源就可以确保Puppetpipe理资源,并且如果它改变了就会回到configuration状态。 今天,我发现不是我configuration的yumrepo资源的情况,直到我添加了audit => all metaparameter资源。 我删除了/etc/yum.repos.d/foo.repo并运行puppetd –test 。 木偶没有重新创build资源。 这是否表明木偶瑕疵? 如果这就是预期的行为,那么它会引发一个问题,那么其他什么资源需要audit => all告诉Puppetpipe理资源的状态,如果它在pipe理下的系统上发生变化呢? 这里是库类: class yum::therepo { # Temporarily remove the Yum repo configuration if we don't have # httpd yet. exec { 'disable-the-repo-to-get-its-dependencies': provider => shell, command => 'rm -f /etc/yum.repos.d/the.repo', unless => 'rpm -q httpd', onlyif => 'test -f /etc/yum.repos.d/the.repo', before => [Package['httpd'], […]