Fix rootwrap configuration documentation

Mention rootwrap.d and modifying rootwrap.conf in case of different
main configuration directory.

Change-Id: I02e8faaaf213af34f094e4ac8726ebf2abb2208a
This commit is contained in:
Dmitry Tantsur 2015-09-24 11:22:29 +02:00
parent 9397a23dc4
commit 8d0a04d670

View File

@ -162,15 +162,24 @@ for the other possible configuration options.
and should have access rights like ``0600``.
**ironic-inspector** requires root rights for managing iptables. It gets them
by running ``ironic-inspector-rootwrap`` utility with ``sudo``. To allow it,
copy ``rootwrap.conf`` to the configuration directory (e.g. as
``/etc/ironic-inspector/rootwrap.conf`` and create file
by running ``ironic-inspector-rootwrap`` utility with ``sudo``.
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::
stack ALL=(root) NOPASSWD: /usr/bin/ironic-inspector-rootwrap /etc/ironic-inspector/rootwrap.conf *
.. note::
``rootwrap.conf`` must be writeable only by root.
``rootwrap.conf`` and all files in ``rootwrap.d`` must be writeable
only by root.
.. note::
If you store ``rootwrap.d`` in a different location, make sure to update
the *filters_path* option in ``rootwrap.conf`` to reflect the change.
If your ``rootwrap.conf`` is in a different location, then you need
to update the *rootwrap_config* option in ``ironic-inspector.conf``
to point to that location.
Replace ``stack`` with whatever user you'll be using to run
**ironic-inspector**.