Changeset 130


Ignore:
Timestamp:
Oct 7, 2007, 10:21:39 PM (17 years ago)
Author:
tabbott
Message:

more support for web interface fixes

Location:
trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/files
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/files/etc/remctl/conf.d/sipb-xen-web

    r129 r130  
    11web lvcreate /usr/sbin/sipb-xen-lvcreate /etc/remctl/acl/web
     2web lvremove /usr/sbin/sipb-xen-lvremove /etc/remctl/acl/web
    23web vmboot /usr/sbin/sipb-xen-boot /etc/remctl/acl/web
    34web register /usr/sbin/remctl-update.sh /etc/remctl/acl/web
    4 web remctl-moira-update all /usr/sbin/remctl-update.sh /etc/remctl/acl/web
     5web unregister /usr/sbin/remctl-update.sh /etc/remctl/acl/web
     6web remctl-moira-update /usr/sbin/remctl-update.sh /etc/remctl/acl/web
    57web listvms /usr/sbin/sipb-xen-listvms /etc/remctl/acl/web
    6 web lvremove /usr/sbin/sipb-xen-lvremove /etc/remctl/acl/web
  • trunk/packages/sipb-xen-remctl-auto/sipb-xen-remctl-auto/files/usr/sbin/remctl-update.sh

    r126 r130  
    7575        grep -R moira "$ACLDIR/" /etc/remctl/acl/ | perl -pe 's/.*moira-acl\/(.*)/$1/g' >| "$AUTOMOIRALIST"
    7676        ;;
     77    unregister)
     78        machine="$2"
     79        rm -f "$ACLDIR"/"$machine"
     80        rm -f "$MACHINEDIR"/"$machine"
     81        "$0" web
     82        ;;
    7783    register)
    78         if [ "$2" == "Domain-0" ]; then
     84        machine="$2"
     85        if [ "$machine" == "Domain-0" ]; then
    7986            echo "No, you can't control Domain 0"
    8087            exit 1
    8188        fi
    82         if [ -e /etc/xen/"$2" ]; then
     89        if [ -e /etc/xen/"$machine" ]; then
    8390            echo "Machine already exists outside database"
    8491            exit 1
    8592        fi
    86         if [ -e "$ACLDIR"/"$2" ]; then
     93        if [ -e "$ACLDIR"/"$machine" ]; then
    8794            echo "Machine already registered"
    8895            exit 1
    8996        fi
    90         echo "include /etc/remctl/acl/web" > "$ACLDIR/$2"
     97        echo "include /etc/remctl/acl/web" > "$ACLDIR/$machine"
    9198        "$0" web
    9299        ;;
     
    95102        "$0" all_machines
    96103        ;;     
    97     all)
     104    remctl-moira-update|all)
    98105        "$0" auto_machine_list
    99106        "$0" all_machines
Note: See TracChangeset for help on using the changeset viewer.