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 <fabi...@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()


-- 
To view, visit https://gerrit.ovirt.org/48316
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3739585879f09ec8a3502a783efec96c0ffb7bb9
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabi...@redhat.com>
_______________________________________________
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to