Index: trunk/packages/sipb-xen-base/files/usr/sbin/invirt-getconf
===================================================================
--- trunk/packages/sipb-xen-base/files/usr/sbin/invirt-getconf	(revision 726)
+++ trunk/packages/sipb-xen-base/files/usr/sbin/invirt-getconf	(revision 726)
@@ -0,0 +1,18 @@
+#!/usr/bin/env python
+
+from invirt.config import load
+from sys import argv, stderr
+
+def main( argv ):
+    try: command, key = argv
+    except: print >> stderr, 'invirt-getconf KEY'
+    conf = load()
+    for component in key.split('.')[:-1]:
+        if component.isdigit(): component = int( component )
+        conf = conf[ component ]
+    print conf[key]
+
+if __name__ == '__main__':
+    main( argv )
+
+# vim:et:sw=4:ts=4
Index: trunk/packages/sipb-xen-base/files/usr/share/python-support/sipb-xen-base/invirt/__init__.py
===================================================================
--- trunk/packages/sipb-xen-base/files/usr/share/python-support/sipb-xen-base/invirt/__init__.py	(revision 725)
+++ trunk/packages/sipb-xen-base/files/usr/share/python-support/sipb-xen-base/invirt/__init__.py	(revision 726)
@@ -20,2 +20,8 @@
 # You should have received a copy of the GNU General Public License
 # along with Invirt.  If not, see <http://www.gnu.org/licenses/>.
+
+__author__    = 'MIT SIPB'
+__version__   = '0.1'
+__copyright__ = 'Copyright (c) 2008 MIT SIPB'
+
+# vim:et:sw=4:ts=4
Index: trunk/packages/sipb-xen-base/files/usr/share/python-support/sipb-xen-base/invirt/config.py
===================================================================
--- trunk/packages/sipb-xen-base/files/usr/share/python-support/sipb-xen-base/invirt/config.py	(revision 726)
+++ trunk/packages/sipb-xen-base/files/usr/share/python-support/sipb-xen-base/invirt/config.py	(revision 726)
@@ -0,0 +1,10 @@
+from __future__ import with_statement
+import yaml
+
+default_path = '/etc/invirt/master.yaml'
+
+def load( path = default_path ):
+    with file( path ) as f:
+        return yaml.load( f, yaml.CSafeLoader )
+
+# vim:et:sw=4:ts=4
