+sipb-xen-console (7.2) unstable; urgency=low
+
+ * Multiplex consoles on multiple hosts.
+
+ -- Greg Price <price@mit.edu> Sun, 13 Jul 2008 08:52:18 -0400
+
sipb-xen-console (7.1) unstable; urgency=low
* Remember to actually divert the conserver config
Architecture: all
Provides: ${diverted-files}
Conflicts: ${diverted-files}
-Depends: ${shlibs:Depends}, ${misc:Depends}, conserver-client, daemon, debathena-kerberos-config, fuse-utils, libnss-pgsql1, nscd, openssh-server, python-fuse, sipb-xen-chrony-config, sipb-xen-database-common
+Depends: ${shlibs:Depends}, ${misc:Depends}, conserver-client, daemon, debathena-kerberos-config, fuse-utils, libnss-pgsql1, nscd, openssh-server, python-fuse, sipb-xen-chrony-config, sipb-xen-database-common, remctl-server
Description: SIPB Xen serial console server
This package should be installed on sipb-xen-console
It makes sure that necessary tools are available.
Architecture: all
Provides: ${diverted-files}
Conflicts: ${diverted-files}
-Depends: ${shlibs:Depends}, ${misc:Depends}, conserver-client, daemon, debathena-kerberos-config, fuse-utils, libnss-pgsql1, nscd, openssh-server, python-fuse, sipb-xen-chrony-config, sipb-xen-database-common
+Depends: ${shlibs:Depends}, ${misc:Depends}, conserver-client, daemon, debathena-kerberos-config, fuse-utils, libnss-pgsql1, nscd, openssh-server, python-fuse, sipb-xen-chrony-config, sipb-xen-database-common, remctl-server
Description: SIPB Xen serial console server
This package should be installed on sipb-xen-console
It makes sure that necessary tools are available.
# default config for console
config * {
- master black-mesa;
- port 3109;
- sslenabled yes;
+ sslrequired yes;
}
+default * {
+ type exec;
+}
+access * {
+ trusted 127.0.0.1;
+ limited *;
+}
+
+#include /etc/conserver/invirt-hosts.cf
--- /dev/null
+config * {
+ master localhost;
+ port 3109;
+ sslenabled yes;
+}
--- /dev/null
+#include /etc/conserver/conf.d/black-mesa.mit.edu
+#include /etc/conserver/conf.d/sx-blade-2.mit.edu
--- /dev/null
+host/black-mesa.mit.edu@ATHENA.MIT.EDU
+host/sx-blade-2.mit.edu@ATHENA.MIT.EDU
--- /dev/null
+console update /usr/sbin/invirt-console-update /etc/remctl/acl/invirt-console
--- /dev/null
+#!/usr/bin/python
+import sys
+import os
+import subprocess
+
+def main(args):
+ contents = args[2]
+ hostname = os.environ['REMOTE_HOST'].lower()
+ f = file('/etc/conserver/conf.d/'+hostname, 'w')
+ f.write(contents)
+ f.close()
+ p = subprocess.Popen(['/etc/init.d/conserver-server', 'reload'],
+ stdout=subprocess.PIPE)
+ p.wait()
+ return 0
+
+if __name__ == '__main__':
+ sys.exit(main(sys.argv))