Puppet does not remove files on agent systems if the puppet server does not have them anymore.
What you probably want to do is set the "ensure => absent" on the file resource in your puppet code. This will ensure that the file is deleted on the puppet agent machine. -- Lowe Schmidt | +46 723 867 157 On 21 January 2016 at 10:33, paul zhao <wolfxiaoz...@gmail.com> wrote: > In Centos 6.5, I use puppet 3.8.2. I found an question, for example: > > in pupept-server machine, there has diretory A, and a.conf in A, b.conf > in A, > then in puppet-agent, after synchronized(puppet agent -t), there also has > diretory A, a.conf in A, b.conf in A > next, in pupept-server, I deleted ../A/b.conf, > then in puppet-agent, after synchronized(puppet agent -t), there also has > diretory A, a.conf in A and b.conf in A, > > Why in puppet-agent, ../A/b.conf still existed? > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/3d8d5d0a-be60-4223-9031-6655b6a68f8a%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/3d8d5d0a-be60-4223-9031-6655b6a68f8a%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAC-wWcSVLZG4%3DjNrNipPcHzCXVHpDgD_jph5XHzAGug1kYK%2BKQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.