Fabian Deutsch has uploaded a new change for review.
Change subject: vdsm.conf: Add drop-in dir ......................................................................
vdsm.conf: Add drop-in dir
A drop-in dir allows the user to put partial configurations into a drop-in directory for the vdsm configuration.
Change-Id: I3739585879f09ec8a3502a783efec96c0ffb7bb9 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1279555 Signed-off-by: Fabian Deutsch fabiand@fedoraproject.org --- M lib/vdsm/config.py.in 1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/16/48316/1
diff --git a/lib/vdsm/config.py.in b/lib/vdsm/config.py.in index 83dcdb4..9f9a307 100644 --- a/lib/vdsm/config.py.in +++ b/lib/vdsm/config.py.in @@ -22,6 +22,7 @@ import os import textwrap import ConfigParser +from glob import glob
parameters = [ # Section: [vars] @@ -455,5 +456,9 @@ set_defaults(config) config.read([os.path.join('@CONFDIR@', 'vdsm.conf')])
+dropindir = [os.path.join('@CONFDIR@', 'vdsm.conf.d')]) +if os.path.exists(dropindir): + config.read(sorted(glob(dropindir + "/*.conf"))) + if __name__ == '__main__': print_config()
automation@ovirt.org has posted comments on this change.
Change subject: vdsm.conf: Add drop-in dir ......................................................................
Patch Set 1:
* #1279555::Update tracker: OK * Check Bug-Url::OK * Check Public Bug::#1279555::OK, public bug * Check Product::#1279555::OK, Correct classification oVirt * Check TM::SKIP, not in a monitored branch (ovirt-3.5 ovirt-3.4 ovirt-3.3 ovirt-3.2) * Check merged to previous::IGNORE, Not in stable branch (['ovirt-3.5', 'ovirt-3.4', 'ovirt-3.3'])
Fabian Deutsch has abandoned this change.
Change subject: vdsm.conf: Add drop-in dir ......................................................................
Abandoned
automation@ovirt.org has posted comments on this change.
Change subject: vdsm.conf: Add drop-in dir ......................................................................
Patch Set 1:
* #1279555::Update tracker: OK
vdsm-patches@lists.fedorahosted.org