diff --git a/elements/rpm-distro/pre-install.d/00-allow-heat-admin-sudo b/elements/rpm-distro/pre-install.d/00-allow-heat-admin-sudo new file mode 100755 index 000000000..4c5d5bdbf --- /dev/null +++ b/elements/rpm-distro/pre-install.d/00-allow-heat-admin-sudo @@ -0,0 +1,7 @@ +#!/bin/bash +set -e + +# heat-admin can not sudo without a tty by default +echo 'Defaults:heat-admin !requiretty' >> /etc/sudoers.d/heat-admin-notty +chmod 0440 /etc/sudoers.d/heat-admin-notty +visudo -c