this works...thanks again..

Umair

On Fri, Dec 17, 2010 at 10:12 AM, Stefan Schulte <
stefan.schu...@taunusstein.net> wrote:

> On Thu, Dec 16, 2010 at 06:34:53PM -0600, Umair Ghani wrote:
> > One more question. How can I run hostmanager as a particular user? By
> > default it runs it as user root.
> >
> > Thanks
> > Umair
>
> I never used that one but puppet has a util function for that purpose
> (asuser defined in util/suidmanager.rb). This SHOULD work:
>
>  Puppet::Util::SUIDManager.asuser(myuid, mygid) do
>     hostmanager '-s', @resource[:name],
>      '-r', @resource[:release], '--install'
>   end
>
> You should also test @resource[:release].nil? because the user might not
> provide every parameter. Or you should define a default value.
>
> -Stefan
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.

Reply via email to