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:
parent
9397a23dc4
commit
8d0a04d670
17
README.rst
17
README.rst
@ -162,15 +162,24 @@ for the other possible configuration options.
|
|||||||
and should have access rights like ``0600``.
|
and should have access rights like ``0600``.
|
||||||
|
|
||||||
**ironic-inspector** requires root rights for managing iptables. It gets them
|
**ironic-inspector** requires root rights for managing iptables. It gets them
|
||||||
by running ``ironic-inspector-rootwrap`` utility with ``sudo``. To allow it,
|
by running ``ironic-inspector-rootwrap`` utility with ``sudo``.
|
||||||
copy ``rootwrap.conf`` to the configuration directory (e.g. as
|
To allow it, copy file ``rootwrap.conf`` and directory ``rootwrap.d`` to the
|
||||||
``/etc/ironic-inspector/rootwrap.conf`` 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::
|
||||||
|
|
||||||
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 *
|
||||||
|
|
||||||
.. note::
|
.. 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
|
Replace ``stack`` with whatever user you'll be using to run
|
||||||
**ironic-inspector**.
|
**ironic-inspector**.
|
||||||
|
Loading…
Reference in New Issue
Block a user