svn path=/trunk/packages/sipb-xen-console-server/; revision=889
+sipb-xen-console-server (2.06) unstable; urgency=low
+
+ * generate config files using mako
+
+ -- Yang Zhang <y_z@mit.edu> Thu, 14 Aug 2008 15:15:18 -0400
+
sipb-xen-console-server (2.05) unstable; urgency=low
* use invirt.config rather than /etc/invirt/* directly
gen_config()
{
- console_ip=$(invirt-getconf console.ip)
- cat >/etc/conserver/invirt-genconfig.cf <<EOF
-access * {
- trusted 127.0.0.1;
- trusted $console_ip;
- limited *;
-}
-EOF
+ for i in /etc/conserver/invirt-genconfig.cf
+ do mako-render $i.mako > $i
+ done
}
#
--- /dev/null
+<% from invirt.config import structs as cfg %>\
+access * {
+ trusted 127.0.0.1;
+ trusted ${cfg.console.ip};
+ limited *;
+}