[chef] Re: Execute resource and sudo


Chronological Thread 
  • From: Tristan Sloughter < >
  • To: Adam Jacob < >
  • Cc:
  • Subject: [chef] Re: Execute resource and sudo
  • Date: Fri, 11 Mar 2011 15:57:14 -0600
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=VsANmYJ19RXm6UaBv7yujtGVtNJnAySG3U94A3WR74LmJwr3jMHMBpowEQ1LgGeCQu PMdyyIrIw4bqYWTPqfN40y8v9yiYoNSIRxWg6Cu943r+WLuaaX5FyjmZ56fK1E+DD4zP TwuwRIjLr6hT9twrzl5RsuiQXC2cFeShyQdKA=

To be exact I run the client by 'sudo chef-client'.

I'll get the logs shortly.

Tristan

On Fri, Mar 11, 2011 at 3:46 PM, Adam Jacob < "> > wrote:
Tristan, do you have debug logs? (Run the chef-client with --log-level debug)

Also, are you running the client as root?

Adam

On Fri, Mar 11, 2011 at 1:35 PM, Tristan Sloughter
< "> > wrote:
> I've run into a problem where I'm using the execute resource and using the
> 'user' attribute. But the command exits with a 1 (not much other information
> is given).
> However, if I instead append 'sudo su - user' to the command in the command
> attribute and do not use the attribute it works fine...
> Tristan



--
Opscode, Inc.
Adam Jacob, Chief Product Officer
T: (206) 619-7151 E: ">




Archive powered by MHonArc 2.6.16.

§