[chef] Execute resource and sudo


Chronological Thread 
  • From: Tristan Sloughter < >
  • To:
  • Subject: [chef] Execute resource and sudo
  • Date: Fri, 11 Mar 2011 15:35:50 -0600
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=BFXAC9v2gz1LLu9niJQZyus6Va4H+R9cVawaER4pvHlWIgxaXfhC0l682Pm3Cc7QDL sprpLMQ0ES7I+hjVSuKZLCR5eNgo2uxEsvos2riaXGmqWAnkOAE7UOEpJG00tELChzvm ybEG1qQOz6R5KI+PQliwEDAfbKB4CDlgn/ZtU=

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



Archive powered by MHonArc 2.6.16.

§