Re: [Puppet Users] Re: delete a file created with puppet

2012-11-26 Thread jcbollinger
On Wednesday, November 21, 2012 3:57:46 AM UTC-6, Alex Stanhope wrote: Hi Jakov, On 21 November 2012 02:03, Jakov Sosic wrote: exec{'first': command = 'cd /tmp wget mykey', creates = '/tmp/mykey', } exec{'second': command = 'echo /tmp/mykey | tee -a /tmp/mykey2', creates

Re: [Puppet Users] Re: delete a file created with puppet

2012-11-21 Thread Alex Stanhope
Hi Jakov, On 21 November 2012 02:03, Jakov Sosic wrote: exec{'first': command = 'cd /tmp wget mykey', creates = '/tmp/mykey', } exec{'second': command = 'echo /tmp/mykey | tee -a /tmp/mykey2', creates = '/tmp/mykey2', } ...a really beautiful ugly hack. I appreciate the

Re: [Puppet Users] Re: delete a file created with puppet

2012-11-21 Thread David Schmitt
On 21.11.2012 03:03, Jakov Sosic wrote: On 11/16/2012 06:17 PM, Alex Stanhope wrote: On Friday, November 16, 2012 5:11:22 PM UTC, Ellison Marks wrote: Could you give some more info on what you're trying to accomplish with this? That way we might offer some ideas to help. Of course.

Re: [Puppet Users] Re: delete a file created with puppet

2012-11-21 Thread Jakov Sosic
On 11/21/2012 11:09 AM, David Schmitt wrote: This will put the passphrase onto the node every time puppet runs. I do not see how that will make it any more secure. I do not think it will. Exec will run only if /tmp/mykey does not exist, and in my case it does exist all the time until you

Re: [Puppet Users] Re: delete a file created with puppet

2012-11-20 Thread Jakov Sosic
On 11/16/2012 06:17 PM, Alex Stanhope wrote: On Friday, November 16, 2012 5:11:22 PM UTC, Ellison Marks wrote: Could you give some more info on what you're trying to accomplish with this? That way we might offer some ideas to help. Of course. I use a temporary file to store a private

[Puppet Users] Re: delete a file created with puppet

2012-11-16 Thread Ellison Marks
You're trying something that's essentially timing based in puppet, which is more state based. You can't really tell puppet that a file should exist and not exist in the same run. Could you give some more info on what you're trying to accomplish with this? That way we might offer some ideas to

[Puppet Users] Re: delete a file created with puppet

2012-11-16 Thread Alex Stanhope
On Friday, November 16, 2012 5:11:22 PM UTC, Ellison Marks wrote: Could you give some more info on what you're trying to accomplish with this? That way we might offer some ideas to help. Of course. I use a temporary file to store a private key passphrase. That passphrase is used to allow

[Puppet Users] Re: delete a file created with puppet

2012-11-16 Thread jcbollinger
On Friday, November 16, 2012 11:17:23 AM UTC-6, Alex Stanhope wrote: On Friday, November 16, 2012 5:11:22 PM UTC, Ellison Marks wrote: Could you give some more info on what you're trying to accomplish with this? That way we might offer some ideas to help. Of course. I use a temporary