Installing packages but running as non-root user

I’ve been using the Chef client as a non-root user on all my nodes. It
seemed like the right way to go. But now I want to be able to use the
package resource to install some base packages on the CentOS nodes. Is there
a way to have the resource sudo? Is it better to just run the client as
root? Is there another way to accomplish this goal without running as root?

Thanks,
Tristan

On Wed, Mar 9, 2011 at 9:20 AM, Tristan Sloughter
tristan.sloughter@gmail.com wrote:

I've been using the Chef client as a non-root user on all my nodes. It
seemed like the right way to go. But now I want to be able to use the
package resource to install some base packages on the CentOS nodes. Is there
a way to have the resource sudo? Is it better to just run the client as
root? Is there another way to accomplish this goal without running as root?

There is not really an easy way to have Chef elevate privileges in
this way - typically, this class of tool runs as root for precisely
these reasons.

Best,
Adam

--
Opscode, Inc.
Adam Jacob, Chief Product Officer
T: (206) 619-7151 E: adam@opscode.com

OK, I'll go that route from now on then. Thanks.

On Wed, Mar 9, 2011 at 9:27 AM, Adam Jacob adam@opscode.com wrote:

On Wed, Mar 9, 2011 at 9:20 AM, Tristan Sloughter
tristan.sloughter@gmail.com wrote:

I've been using the Chef client as a non-root user on all my nodes. It
seemed like the right way to go. But now I want to be able to use the
package resource to install some base packages on the CentOS nodes. Is
there
a way to have the resource sudo? Is it better to just run the client as
root? Is there another way to accomplish this goal without running as
root?

There is not really an easy way to have Chef elevate privileges in
this way - typically, this class of tool runs as root for precisely
these reasons.

Best,
Adam

--
Opscode, Inc.
Adam Jacob, Chief Product Officer
T: (206) 619-7151 E: adam@opscode.com