From: Yang Zhang Date: Thu, 14 Aug 2008 19:15:38 +0000 (-0400) Subject: generate config files using mako X-Git-Tag: sipb-xen-console-server/2.06^0 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-console.git/commitdiff_plain/6dde26115bb18b34a5c0dcbf885f585f67e3060e?ds=inline generate config files using mako svn path=/trunk/packages/sipb-xen-console-server/; revision=889 --- diff --git a/debian/changelog b/debian/changelog index 760d0e3..4819606 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +sipb-xen-console-server (2.06) unstable; urgency=low + + * generate config files using mako + + -- Yang Zhang 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 diff --git a/debian/sipb-xen-console-server.init b/debian/sipb-xen-console-server.init index 97eac71..2b8a116 100755 --- a/debian/sipb-xen-console-server.init +++ b/debian/sipb-xen-console-server.init @@ -31,14 +31,9 @@ SCRIPTNAME=/etc/init.d/$NAME gen_config() { - console_ip=$(invirt-getconf console.ip) - cat >/etc/conserver/invirt-genconfig.cf < $i + done } # diff --git a/files/etc/conserver/invirt-genconfig.cf.mako b/files/etc/conserver/invirt-genconfig.cf.mako new file mode 100644 index 0000000..94c3f94 --- /dev/null +++ b/files/etc/conserver/invirt-genconfig.cf.mako @@ -0,0 +1,6 @@ +<% from invirt.config import structs as cfg %>\ +access * { + trusted 127.0.0.1; + trusted ${cfg.console.ip}; + limited *; +}