[chef] Re: Re: Re: Re: Chef bash resource not executing as specified user


Chronological Thread 
  • From: Daniel DeLeo < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Chef bash resource not executing as specified user
  • Date: Wed, 25 Jan 2012 08:42:23 -0800



On Wednesday, January 25, 2012 at 8:32 AM, Arthur Kalmenson wrote:

> Leonardo,
> Yes, running as sudo
> 
> Joseph,
> Yeah, it looks the same to me as well. But how would I work around that?
> 
> Daniel,
> That makes sense, but is there a way to source it so it runs as if it's 
> logged in?

You could try adding the `-l` flag to the bash resource, and setting the HOME 
environment variable using the `environment` attribute of the bash resource.
 
I created an improvement request for this: 
http://tickets.opscode.com/browse/CHEF-2288 There are some workarounds posted.
 
> 
> Thank you all for your help.
> 
> --
> Arthur Kalmenson




-- 
Dan DeLeo




Archive powered by MHonArc 2.6.16.

§