From: Tim Abbott Date: Tue, 16 Oct 2007 05:09:26 +0000 (-0400) Subject: more remctl interface changes. X-Git-Tag: sipb-xen-remctl-auto/1.0.5~1 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-remote.git/commitdiff_plain/4e16fe26ede5b1ea921dc9067525c0eeadaff8cb more remctl interface changes. svn path=/trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/; revision=198 --- diff --git a/files/etc/remctl/conf.d/sipb-xen-web b/files/etc/remctl/conf.d/sipb-xen-web index edc362c..43356b2 100644 --- a/files/etc/remctl/conf.d/sipb-xen-web +++ b/files/etc/remctl/conf.d/sipb-xen-web @@ -2,9 +2,9 @@ web lvcreate /usr/sbin/sipb-xen-lvm /etc/remctl/acl/web web lvremove /usr/sbin/sipb-xen-lvm /etc/remctl/acl/web web lvrename /usr/sbin/sipb-xen-lvm /etc/remctl/acl/web web lvresize /usr/sbin/sipb-xen-lvm /etc/remctl/acl/web -web vmboot /usr/sbin/sipb-xen-boot /etc/remctl/acl/web -web register /usr/sbin/remctl-update.sh /etc/remctl/acl/web -web moveregister /usr/sbin/remctl-update.sh /etc/remctl/acl/web -web unregister /usr/sbin/remctl-update.sh /etc/remctl/acl/web -web remctl-moira-update /usr/sbin/remctl-update.sh /etc/remctl/acl/web +web vmboot /usr/sbin/sipb-xen-vmcontrol /etc/remctl/acl/web +web register /usr/sbin/sipb-xen-remctl-update /etc/remctl/acl/web +web moveregister /usr/sbin/sipb-xen-remctl-update /etc/remctl/acl/web +web unregister /usr/sbin/sipb-xen-remctl-update /etc/remctl/acl/web +web remctl-moira-update /usr/sbin/sipb-xen-remctl-update /etc/remctl/acl/web web listvms /usr/sbin/sipb-xen-listvms /etc/remctl/acl/web diff --git a/files/etc/remctl/sipb-xen-auto/README b/files/etc/remctl/sipb-xen-auto/README index 86ced5d..8a950c2 100644 --- a/files/etc/remctl/sipb-xen-auto/README +++ b/files/etc/remctl/sipb-xen-auto/README @@ -1,7 +1,7 @@ This is Tim Abbott's initial draft at our automatic remctl configuration. -/usr/sbin/remctl-update.sh is the magic script. Run +/usr/sbin/sipb-xen-remctl-update is the magic script. Run it with "all" as an argument, and it will update everything. The inputs to this system are as follows: @@ -18,7 +18,7 @@ to include AFS groups in ACLs. To add a new machine to the system, you simply need to create /etc/remctl/sipb-xen-auto/acl/MACHINENAME and then run -/usr/sbin/remctl-update.sh all +/usr/sbin/sipb-xen-remctl-update all Everything else is autogenerated from that information. @@ -41,12 +41,12 @@ is generated by parsing the ACL files in /etc/remctl/sipb-xen-auto/acl/. This package also includes a crontab to run -/usr/sbin/remctl-update.sh all +/usr/sbin/sipb-xen-remctl-update all every 15 minutes or so to keep our Moira mapping up to date. One can request an update of our Moira mapping for group X by running -/usr/sbin/remctl-update.sh moiragroup X +/usr/sbin/sipb-xen-remctl-update moiragroup X The web interface should probably run this when it adds a group. We may want to make this also available to users, but I've been lame. @@ -54,7 +54,7 @@ may want to make this also available to users, but I've been lame. This package includes a remctl interface available to anyone to invoke the command: -/usr/sbin/remctl-update.sh all +/usr/sbin/sipb-xen-remctl-update all using the following command from your favorite machine with remctl: diff --git a/files/etc/remctl/sipb-xen-auto/conf.template b/files/etc/remctl/sipb-xen-auto/conf.template index 3a5785f..2dcc78e 100644 --- a/files/etc/remctl/sipb-xen-auto/conf.template +++ b/files/etc/remctl/sipb-xen-auto/conf.template @@ -1,9 +1 @@ -create #MACHINENAME# #BINDIR#/dispatch.create.sh /etc/remctl/sipb-xen-auto/acl/#MACHINENAME# -reboot #MACHINENAME# #BINDIR#/dispatch.reboot.sh /etc/remctl/sipb-xen-auto/acl/#MACHINENAME# -destroy #MACHINENAME# #BINDIR#/dispatch.destroy.sh /etc/remctl/sipb-xen-auto/acl/#MACHINENAME# -list #MACHINENAME# #BINDIR#/dispatch.list.sh /etc/remctl/sipb-xen-auto/acl/#MACHINENAME# -shutdown #MACHINENAME# #BINDIR#/dispatch.shutdown.sh /etc/remctl/sipb-xen-auto/acl/#MACHINENAME# -list-long #MACHINENAME# #BINDIR#/dispatch.list-long.sh /etc/remctl/sipb-xen-auto/acl/#MACHINENAME# -vcpu-list #MACHINENAME# #BINDIR#/dispatch.vcpu-list.sh /etc/remctl/sipb-xen-auto/acl/#MACHINENAME# -uptime #MACHINENAME# #BINDIR#/dispatch.uptime.sh /etc/remctl/sipb-xen-auto/acl/#MACHINENAME# -vnc_get_port_auth #MACHINENAME# #BINDIR#/get_port /etc/remctl/acl/vnc +control #MACHINENAME# #BINDIR#/sipb-xen-vmcontrol /etc/remctl/sipb-xen-auto/acl/#MACHINENAME#