In a node, for a test, I have: tidy { ''/opt/home/users/george'': age => "1w", recurse => true, rmdirs => true, } and when I ran it, it cleaned out all the files under "george", but not the directories. There are two directories, one with today''s date on it (I expect that one to stay) and another with a June date on it. Why is that one still there ? “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
What are the ownerships of the unremoved directories? Also, were the directories themselves not at least a week old? Perhaps a bug is lurking. If I am the Puppet pattern-applicator and I remove the files first, the directory file is updated and will fail the age test if that calculation is not done before the file removes in that directory. I don''t know if the pattern-applicator is prone to that. You might want to run a simple bare-bones test to check it or perhaps the designers can speak to that point. --Stuart Via Apple iPhone 4S on the AT&T Wireless Network On Aug 8, 2012, at 6:40 AM, Dan White <ygor@comcast.net> wrote:> In a node, for a test, I have: > > tidy { ''/opt/home/users/george'': > age => "1w", > recurse => true, > rmdirs => true, > } > > and when I ran it, it cleaned out all the files under "george", but not the directories. > There are two directories, one with today''s date on it (I expect that one to stay) and another with a June date on it. Why is that one still there ? > > “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” > Bill Waterson (Calvin & Hobbes) > > -- > You received this message because you are subscribed to the Google Groups "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Valid questions, Stuart, but I get the same behavior if I set age to zero. I do a "chmod -vR a+rw" to the directory named in the resource, and it still misbehaves. I tried cleaning it out by hand, then putting things back in to be removed (tidy age still zero). All the new objects are owned by root. Run puppet, and tidy removes the files and leaves the directories. I think it is time to file a Bug. I will do it in the morning unless I get an answer between now and then. Thanks for responding. ----- Stuart Cracraft <smcracraft@me.com> wrote:> > What are the ownerships of the unremoved directories? > > Also, were the directories themselves not at least a week old? > > Perhaps a bug is lurking. > > If I am the Puppet pattern-applicator and I remove the files first, the directory file is updated and will fail the age test if that calculation is not done before the file removes in that directory. > > I don''t know if the pattern-applicator is prone to that. > > You might want to run a simple > bare-bones test to check it or perhaps the designers can speak to that point. > > --Stuart > > Via Apple iPhone 4S on the AT&T Wireless Network > > > On Aug 8, 2012, at 6:40 AM, Dan White <ygor@comcast.net> wrote: > > > In a node, for a test, I have: > > > > tidy { ''/opt/home/users/george'': > > age => "1w", > > recurse => true, > > rmdirs => true, > > } > > > > and when I ran it, it cleaned out all the files under "george", but not the directories. > > There are two directories, one with today''s date on it (I expect that one to stay) and another with a June date on it. Why is that one still there ?“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.