Changeset 130
- Timestamp:
- Oct 7, 2007, 10:21:39 PM (17 years ago)
- 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 1 1 web lvcreate /usr/sbin/sipb-xen-lvcreate /etc/remctl/acl/web 2 web lvremove /usr/sbin/sipb-xen-lvremove /etc/remctl/acl/web 2 3 web vmboot /usr/sbin/sipb-xen-boot /etc/remctl/acl/web 3 4 web 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 5 web unregister /usr/sbin/remctl-update.sh /etc/remctl/acl/web 6 web remctl-moira-update /usr/sbin/remctl-update.sh /etc/remctl/acl/web 5 7 web 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 75 75 grep -R moira "$ACLDIR/" /etc/remctl/acl/ | perl -pe 's/.*moira-acl\/(.*)/$1/g' >| "$AUTOMOIRALIST" 76 76 ;; 77 unregister) 78 machine="$2" 79 rm -f "$ACLDIR"/"$machine" 80 rm -f "$MACHINEDIR"/"$machine" 81 "$0" web 82 ;; 77 83 register) 78 if [ "$2" == "Domain-0" ]; then 84 machine="$2" 85 if [ "$machine" == "Domain-0" ]; then 79 86 echo "No, you can't control Domain 0" 80 87 exit 1 81 88 fi 82 if [ -e /etc/xen/"$ 2" ]; then89 if [ -e /etc/xen/"$machine" ]; then 83 90 echo "Machine already exists outside database" 84 91 exit 1 85 92 fi 86 if [ -e "$ACLDIR"/"$ 2" ]; then93 if [ -e "$ACLDIR"/"$machine" ]; then 87 94 echo "Machine already registered" 88 95 exit 1 89 96 fi 90 echo "include /etc/remctl/acl/web" > "$ACLDIR/$ 2"97 echo "include /etc/remctl/acl/web" > "$ACLDIR/$machine" 91 98 "$0" web 92 99 ;; … … 95 102 "$0" all_machines 96 103 ;; 97 all)104 remctl-moira-update|all) 98 105 "$0" auto_machine_list 99 106 "$0" all_machines
Note: See TracChangeset
for help on using the changeset viewer.