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
This commit is contained in:
parent
34c770c6b5
commit
2d228cd6b9
@ -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
|
configuration directory (e.g. ``/etc/ironic-inspector/``) and create file
|
||||||
``/etc/sudoers.d/ironic-inspector-rootwrap`` with the following content::
|
``/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 *
|
stack ALL=(root) NOPASSWD: /usr/bin/ironic-inspector-rootwrap /etc/ironic-inspector/rootwrap.conf *
|
||||||
|
|
||||||
.. DANGER::
|
.. DANGER::
|
||||||
|
Loading…
Reference in New Issue
Block a user