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
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
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
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
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
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