[Puppet Users] Re: exec : creates parameter does not create the file

2009-06-28 Thread Marcin Owsiany
On Sat, Jun 27, 2009 at 04:54:44PM +0200, Peter Meier wrote: > > Hi > > > exec { "sources": > >command => "sudo gem sources -a http://gems.github.com/ > > > /tmp/githubadded", > >creates => "/tmp/githubadded" > > } > > > > I hope that's the right way to do it... > > > I would

[Puppet Users] Re: exec : creates parameter does not create the file

2009-06-27 Thread Swati Tiwari
That's definitely way better than what I was planning on doing, thanks Peter! 2009/6/27 Peter Meier > > Hi > > > exec { "sources": > >command => "sudo gem sources -a http://gems.github.com/ > > > /tmp/githubadded", > >creates => "/tmp/githubadded" > > } > > > > I hope that's the

[Puppet Users] Re: exec : creates parameter does not create the file

2009-06-27 Thread Peter Meier
Hi > exec { "sources": >command => "sudo gem sources -a http://gems.github.com/ > > /tmp/githubadded", >creates => "/tmp/githubadded" > } > > I hope that's the right way to do it... I would rather do: exec { "sources": command => "sudo gem sources -a http://gems.github

[Puppet Users] Re: exec : creates parameter does not create the file

2009-06-26 Thread Swati Tiwari
Got it! Thank you! I did this and it worked! exec { "sources": command => "sudo gem sources -a http://gems.github.com/ > /tmp/githubadded", creates => "/tmp/githubadded" } I hope that's the right way to do it... 2009/6/26 Scott Smith > > Swati Tiwari wrote: > > The command runs

[Puppet Users] Re: exec : creates parameter does not create the file

2009-06-26 Thread Scott Smith
Swati Tiwari wrote: > The command runs fine but it does not create /tmp/githubadded file. I > also have write permission on this directory. Any help would be > appreciated. Thanks! > << creates A file that this command creates. If this parameter is provided, then the command will only be run

[Puppet Users] Re: exec : creates parameter does not create the file

2009-06-26 Thread Avi Miller
Swati Tiwari wrote: > The command runs fine but it does not create /tmp/githubadded file. I think you're misunderstanding the parameter. The exec resource does not create this file. It assumes whatever it is exec'ing will create the file. So, it will keep running the exec until this file is cre