From 2d228cd6b9383441af31aa20767dd0e635ea8868 Mon Sep 17 00:00:00 2001 From: OctopusZhang Date: Wed, 16 Nov 2016 17:15:28 +0800 Subject: [PATCH] Add !requiretty to sudoers config in install document When we use devstack to start ironic-inspector service, it starts sucessfully because we have a tty in devstack screen. But when we try to use service command to start it, we should add '!requiretty'in the suoders config, or it will fail. Change-Id: I1f9f539c8eafea726ca7015ef86773e26a5a5641 --- doc/source/install.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/source/install.rst b/doc/source/install.rst index 2cf248e53..b7e364acd 100644 --- a/doc/source/install.rst +++ b/doc/source/install.rst @@ -131,6 +131,7 @@ To allow it, copy file ``rootwrap.conf`` and directory ``rootwrap.d`` to the configuration directory (e.g. ``/etc/ironic-inspector/``) and create file ``/etc/sudoers.d/ironic-inspector-rootwrap`` with the following content:: + Defaults:stack !requiretty stack ALL=(root) NOPASSWD: /usr/bin/ironic-inspector-rootwrap /etc/ironic-inspector/rootwrap.conf * .. DANGER::