Chef Ideas

We believe that the best way to build software is to do it in close collaboration with the people who use it.  We invite you to submit your ideas using the form below.  Please be sure to include the problem for which you are solving and the benefits of implementing the idea.  Thanks for collaborating with us!

Allow chef-run to work around sudoers default of requiretty

Currently with chef-run targeting a RHEL6-like system, chef-run fails to connect when a command line like this is run

chef-run ssh://someone@somewhere SOME_COMMAND --password 1234 --sudo-password 1234 

The reason is that this is the default setting in /etc/sudoers on RHEL6-like systems

Defaults requiretty

chef-workstation 0.16.31 and above handles this situation better, and directs the user of the command how to change their /etc/sudoers.

If possible, it would be nice to work around this problem altogether, with no manual changes of system config files.

  • Guest
  • Feb 28 2020
  • Attach files
  • Karl Fischer commented
    04 Mar 19:26

    really wish chef-run could get more love