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 <[email protected]>
>
> 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 if the specified file does not exist:
> >>
>
> This means Puppet uses the file specified in your creates directive to
> determine if it needs to run the command again. Neither `sudo' nor `gem'
> create the file `/tmp/githubadded', so it will always execute this Exec
> resource.
>
> -scott
>
> --
> [email protected]
>
> http://github.com/ohlol
>
> >
>
--
Regards,
Swati
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---