Tidy not working

71 views
Skip to first unread message

Ugo Bellavance

unread,
Nov 15, 2016, 11:21:08 AM11/15/16
to Puppet Users
Hi,

# puppet -V
2.7.26

(both on server and client).

I created this manifest:

class tidy_dtools_logdir {

  tidy { "/opt/ati/dtools-current-version/log/":
    age     => '1w',
  }

}

Added the class to the node, then ran puppet, then:

cat /var/lib/puppet/classes.txt | grep dtool
tidy_dtools_logdir

Many files in this directory are from September (atime and mtime) but when I run puppet, no file is deleted.

I tried recurse => 'yes' (even if there is no subdir), type => 'mtime'.

It's the first time I try using tidy, am I missing something obvious?

Ugo

Craig Dunn

unread,
Nov 16, 2016, 12:40:30 PM11/16/16
to puppet...@googlegroups.com


On Tue, Nov 15, 2016 at 5:21 PM, Ugo Bellavance <ug...@lubik.ca> wrote:
# puppet -V
2.7.26


 
[snip] 

It's the first time I try using tidy, am I missing something obvious?


The year?

I'm not trying to be flippant but you are trying to solve a problem on software that was end of life many years ago now.  Even Puppet 3 is end of life in a matter of weeks.   Rather than waste time trying to debug very ancient code (a quick glance at GitHub shows 18 closed pull requests specifically mentioning the tidy resource) you should invest in upgrading, at least to a later puppet 3 set up that people still have vague memories of.

Regards
Craig
 
--
Enviatics     |      Automation and Configuration Management
Puppet Labs Service Delivery Partner & Certified Consultant

Reply all
Reply to author
Forward
0 new messages