Hello all, I am trying to use the tidy type to clean up a directory that I use for running scripts via puppet. My relevant manifest looks like: tidy { "/root/.puppet/" : age => ''30D'', path => ''/root/.puppet/'', recurse => true, rmdirs => true, type => atime, } However, when I run puppet it deletes files and directories that where accessed ( or even created ) within 30 days. Example: # mkdir /root/.puppet # touch /root/.puppet/new-file # puppetd --test info: Caching configuration at /var/lib/puppet/localconfig.yaml notice: Starting configuration run notice: //my_test/tidy=/root/.puppet//tidy=/root/.bluegecko/new-file/tidyup: tidyup changed ''5'' to ''2592000 '' notice: //my_test/tidy=/root/.puppet//tidyup: tidyup changed ''5'' to ''2592000 '' [.....] My goal is delete files older than 30 days, and I thought that''s what I was doing here. Is there something that I might be setting elsewhere to cause this to happen? -r'' _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com mail.madstop.com/mailman/listinfo/puppet-users
RijilV wrote:> My goal is delete files older than 30 days, and I thought that''s what I > was doing here. Is there something that I might be setting elsewhere > to cause this to happen?I apologize; I created the tidy type very early on as a way of covering cfengine functionality, and I haven''t looked at it since; I don''t user it, either. Clearly I''ve learned a lot about test code since then, because the tests for that type were horrible. I rewrote a significant portion of the type and all of the tests, and now it works. It''ll be in the next release, but that probably doesn''t help you much right now. -- Health nuts are going to feel stupid someday, lying in hospitals dying of nothing. --Redd Foxx --------------------------------------------------------------------- Luke Kanies | reductivelabs.com | madstop.com