Jira (PUP-8981) exclude parameter for resource type tidy

1 view
Skip to first unread message

Hadmut Danisch (JIRA)

unread,
Jul 4, 2018, 8:14:03 AM7/4/18
to puppe...@googlegroups.com
Hadmut Danisch created an issue
 
Puppet / Improvement PUP-8981
exclude parameter for resource type tidy
Issue Type: Improvement Improvement
Affects Versions: PUP 5.4.0
Assignee: Unassigned
Created: 2018/07/04 5:13 AM
Priority: Normal Normal
Reporter: Hadmut Danisch

Puppet Version: 5.4.0
**

 

Hi,

I'd be happy if the tidy resource would have an additional parameter (similar to matches) which excludes files from beeing deleted.

 

Reason:

I'm using puppet to install several files to machines, where every now and then a new version needs to be installed, e.g.    /somedir/datafile-20180503.txt

After some time, there's lots of these files occupying and wasting disk space, although only the latest is actually used.

 

Therefore, I need to install the latest file (like /somedir/datafile-20180503.txt ) and remove all older /somedir/datafile-*.txt files. Currently tidy does not allow that, since limits are possible only through age.

 

Would be great if I could use something like

 

{{tidy { '/somedir': }}

   matches => [ 'datafile-*.txt' ],

   keep => [ 'datafile-20180503.txt' ];

}

or maybe a given count of newest files , e.g.  keep => 1

regards

 

 

 

 

Describe your issue in as much detail as possible…
Describe steps to reproduce…

Desired Behavior:

Actual Behavior:

Please take a moment and attach any relevant log output and/or manifests. This will help us immensely when troubleshooting the issue.

Examples:
Run puppet agent with --test --trace --debug

Relevant sections of /var/log/puppetlabs/puppetserver/puppetserver.log or any applicable logs from the same directory.

For more detailed information turn up the server logs by upping the log level in the server's logback.xml

Relevant sections of configurations files (puppet.conf, hiera.conf, Server's conf.d, defaults/sysconfig)

For memory issues with server heap dumps are also helpful.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Josh Cooper (JIRA)

unread,
Jul 12, 2018, 5:03:02 PM7/12/18
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
*Puppet Version: 5.4.0*
**

 

Hi,

I'd be happy if the tidy resource would have an additional parameter (similar to matches) which excludes files from beeing deleted.

 

Reason:

I'm using puppet to install several files to machines, where every now and then a new version needs to be installed, e.g.    /somedir/datafile-20180503.txt

After some time, there's lots of these files occupying and wasting disk space, although only the latest is actually used.

 

Therefore, I need to install the latest file (like /somedir/datafile-20180503.txt ) and remove all older /somedir/datafile-*.txt files. Currently tidy does not allow that, since limits are possible only through age.

 

Would be great if I could use something like

 

{ { code:puppet}
tidy { '/somedir':   }}

{{  
  matches => [ 'datafile-*.txt' ], }}

{{  
keep => [ 'datafile-20180503.txt' ] ;}}

{ { code } }}

or maybe a given count of newest files , e.g. 
{{ keep => 1

regards

 

 

 

 

Describe your issue in as much detail as possible…
Describe steps to reproduce…

*Desired Behavior:*

*Actual Behavior:*


Please take a moment and attach any relevant log output and/or manifests. This will help us immensely when troubleshooting the issue.

Examples:
Run puppet agent with --test --trace --debug

Relevant sections of {{/var/log/puppetlabs/puppetserver/puppetserver.log
}} or any applicable logs from the same directory.

For more detailed information turn up the server logs by upping the log level in the server's logback.xml

Relevant sections of configurations files (puppet.conf, hiera.conf, Server's conf.d, defaults/sysconfig)

For memory issues with server heap dumps are also helpful. regards

Josh Cooper (JIRA)

unread,
Jul 12, 2018, 5:04:03 PM7/12/18
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Team: Coremunity

Josh Cooper (Jira)

unread,
Jun 15, 2021, 1:14:02 PM6/15/21
to puppe...@googlegroups.com
Josh Cooper commented on Improvement PUP-8981
 
Re: exclude parameter for resource type tidy

This ticket has been open for many years and we don't have plans on fixing it, so I'm going to close this ticket. If you'd like to contribute a pull request, please reopen and reach out in slack. We can help you get started.

This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages