tripleo-image-elements/elements/nova/pre-install.d/00-nova-disable-requiretty
Dan Prince 817ddbf69b Name disable-requiretty files uniquely
Updates the nova and ironic elements so that we use unique names
for the pre-install.d scripts to disable the sudo requiretty
feature.

In this commit we also make
elements/ironic/pre-install.d/00-ironic-disable-requiretty
executable (previously it wasn't)

This fixes issues in trying to use the nova/ironic elements on
Fedora 20.

Change-Id: Ic0970eaf3485753b09646b35da59bb43c6acfea7
Closes-bug: #1321849
2014-06-04 10:12:13 -04:00

9 lines
174 B
Bash
Executable File

#!/bin/bash
set -e
if [ -d /etc/sudoers.d ]; then
echo "Defaults:nova !requiretty" > /etc/sudoers.d/nova-notty
chmod 0440 /etc/sudoers.d/nova-notty
visudo -c
fi