def getconf(hostname, force=False, media=None):
api = plc.PLC(auth.auth, auth.plc)
n = api.GetNodes(hostname)
def getconf(hostname, force=False, media=None):
api = plc.PLC(auth.auth, auth.plc)
n = api.GetNodes(hostname)
- print os.system("cd bootcd-alpha; ./build.sh -f %s.txt -t iso -o /plc/data/var/www/html/bootcds/%s.iso &> /dev/null" % ( hostname, hostname))
- print os.system("cd bootcd-alpha; ./build.sh -f %s.txt -t usb_partition -o /plc/data/var/www/html/bootcds/%s-partition.usb &> /dev/null" % ( hostname, hostname))
+ print os.system("cd bootcd; ./build.sh -f %s.txt -t iso -o /plc/data/var/www/html/bootcds/%s.iso &> /dev/null" % ( hostname, hostname))
+ print os.system("cd bootcd; ./build.sh -f %s.txt -t usb_partition -o /plc/data/var/www/html/bootcds/%s-partition.usb &> /dev/null" % ( hostname, hostname))
- args['url_list'] = " http://pl-virtual-03.cs.princeton.edu/bootcds/%s-partition.usb\n" % hostname
- args['url_list'] += " http://pl-virtual-03.cs.princeton.edu/bootcds/%s.iso" % hostname
+ args['url_list'] = " http://monitor.planet-lab.org/bootcds/%s-partition.usb\n" % hostname
+ args['url_list'] += " http://monitor.planet-lab.org/bootcds/%s.iso" % hostname
- args['url_list'] = " http://pl-virtual-03.cs.princeton.edu/bootcds/%s-partition.usb\n" % hostname
- args['url_list'] += " http://pl-virtual-03.cs.princeton.edu/bootcds/%s.iso" % hostname
+ args['url_list'] = " http://monitor.planet-lab.org/bootcds/%s-partition.usb\n" % hostname
+ args['url_list'] += " http://monitor.planet-lab.org/bootcds/%s.iso" % hostname