Re: [Puppet Users] Cleaning up temp files with puppet

2014-03-12 Thread Kenton Brede
How about ending your script with a command that removes itself? /bin/rm path_to_script or /bin/rm $0 Kent On Tue, Mar 11, 2014 at 5:09 PM, nfwlpw nfw...@gmail.com wrote: So I have a puppet module, that gets a script from files/, runs that script, and after it's done, I'd like to remove it.

[Puppet Users] Cleaning up temp files with puppet

2014-03-11 Thread nfwlpw
So I have a puppet module, that gets a script from files/, runs that script, and after it's done, I'd like to remove it. Unfortunately puppet doesn't seem to like to have 2 different File resource aliased to the same, so I can't do file { myfile: ensure = present, source =

Re: [Puppet Users] Cleaning up temp files with puppet

2014-03-11 Thread Johan De Wit
On 11/03/14 23:09, nfwlpw wrote: So I have a puppet module, that gets a script from files/, runs that script, and after it's done, I'd like to remove it. Unfortunately puppet doesn't seem to like to have 2 different File resource aliased to the same, so I can't do file { myfile: ensure