Fix sudoers requiretty config
TTY requirement should be disabled for sudo inside containers since they run without a TTY in most cases. Change-Id: Ie97f3af3a658f1d8244068d425dc9a6319e75823 Closes-Bug: #1510031
This commit is contained in:
parent
54165e112c
commit
490120c5db
@ -202,4 +202,7 @@ rm -f /sbin/sln
|
|||||||
mkdir -p /etc/puppet /var/lib/fuel/ibp
|
mkdir -p /etc/puppet /var/lib/fuel/ibp
|
||||||
touch /etc/puppet/hiera.yaml /var/lib/hiera/common.yaml
|
touch /etc/puppet/hiera.yaml /var/lib/hiera/common.yaml
|
||||||
|
|
||||||
|
# Sudo does not need TTYs
|
||||||
|
sed -i '/requiretty/s/^/#/g' /etc/sudoers
|
||||||
|
|
||||||
%end
|
%end
|
||||||
|
Loading…
Reference in New Issue
Block a user