Fedora element allows root to sudo without TTY.

The root user tries to `sudo -u stack`, without a tty,
causing fedora+devstack images builds to fail in Jenkins.

Change-Id: Ia0a7fb315cf9bd17cf250e70dba06363a697c97c
This commit is contained in:
Tim Miller 2013-04-09 16:45:15 -07:00
parent 169382246b
commit 9eda303f5f

View File

@ -0,0 +1,7 @@
#!/bin/bash
set -e
# root can not sudo without a tty by default.
echo "Defaults:root !requiretty" >> /etc/sudoers.d/root-notty
chmod 0440 /etc/sudoers.d/root-notty
visudo -c