Nope. If you feel strongly that there should be, you can drop in a feature request or submit a patch, and we would be happy to consider it. Generally, though, it seems like a very strange requirement. I can't imagine why you would need to do those operations as different users, although I absolutely believe you when you say that you do.
It would be very helpful, so, if you could explain what the root cause of that need is. :) Daniel On Sat, Jun 25, 2011 at 06:54, ssk1287 <kulkarni.swar...@gmail.com> wrote: > That is exactly what I ended up using. Isn't there a more "puppetty" > way of doing this ? > > On Jun 24, 5:41 pm, Nathan Clemons <nat...@livemocha.com> wrote: >> Use su -c <cmd> user? >> -- >> Nathan Clemonshttp://www.livemocha.com >> The worlds largest online language learning communityOn Fri, Jun 24, 2011 at >> 3:06 PM, ssk1287 <kulkarni.swar...@gmail.com> wrote: >> > I have the following exec in my manifest : >> >> > exec { some_exec: >> > path => [ "/bin","/usr/bin","/usr/local/bin" ], >> > command => "EXECUTE COMMAND 1", >> > onlyif => "EXECUTE COMMAND 2", >> > logoutput => "on_failure" >> > } >> >> > I want that the "COMMAND 1" should be executed by "USER 1" and >> > "COMMAND 2" should be executed by "USER 2". Is there a way to do it ? >> > I tried giving the "users" parameter, but that seems to apply to both >> > the commands. >> >> > Thanks in advance, >> >> > -- >> > You received this message because you are subscribed to the Google Groups >> > "Puppet Users" group. >> > To post to this group, send email to puppet-users@googlegroups.com. >> > To unsubscribe from this group, send email to >> > puppet-users+unsubscr...@googlegroups.com. >> > For more options, visit this group at >> >http://groups.google.com/group/puppet-users?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > > -- ⎋ Puppet Labs Developer – http://puppetlabs.com ✉ Daniel Pittman <dan...@puppetlabs.com> ✆ Contact me via gtalk, email, or phone: +1 (877) 575-9775 ♲ Made with 100 percent post-consumer electrons -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.