Here's one for you! We're rolling out some zip files to our servers using Puppet, there's an exec that unzips them, the zip file is then deleted. I need to remove the old versions of the unzipped directory using Puppet when we rol out a newer version.
So, on my client/node machine I have the below directories. /opt/1234 /opt/12345 /opt/123456 What I need to do, is rm the the above directories when we roll out 1234567.zip. When the newest directory (1234567) is unzipped, the Puppet exec sym links it to /opt/java. So could I remove the older directores that are not sym linked? Maybe using: tidy { tidy_opt: path => "/opt/", age => "1d", backup => false, matches => [ "some nice ruby here that finds the non sym linked directories??" ], } Hope this makes sense? Thanks, -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/nq3bxtqSYNwJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.