mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
Fix hardcoded variables, tweak schema/dockerfile
Change config.local.py to config_local.py Fix 2AM Willard Moments™ Made a few errors last night that should be corrected.
This commit is contained in:
parent
262b5b10eb
commit
74a0990997
18 changed files with 38 additions and 18814 deletions
|
|
@ -83,11 +83,12 @@ def create_vm_task(user, name, cores, memory, disk, iso):
|
|||
set_job_status(job, 'failed to provision')
|
||||
delete_vm_task(vmid)
|
||||
return
|
||||
logging.info('[{}] Registering in STARRS.'.format(name))
|
||||
set_job_status(job, 'registering in STARRS')
|
||||
vm = VM(vmid)
|
||||
ip = get_next_ip(starrs, app.config['STARRS_IP_RANGE'])
|
||||
register_starrs(starrs, name, app.config['STARRS_USER'], vm.get_mac(), ip)
|
||||
if (eval(app.config['USE_STARRS'])):
|
||||
logging.info('[{}] Registering in STARRS.'.format(name))
|
||||
set_job_status(job, 'registering in STARRS')
|
||||
ip = get_next_ip(starrs, app.config['STARRS_IP_RANGE'])
|
||||
register_starrs(starrs, name, app.config['STARRS_USER'], vm.get_mac(), ip)
|
||||
set_job_status(job, 'setting VM expiration')
|
||||
get_vm_expire(db, vmid, app.config['VM_EXPIRE_MONTHS'])
|
||||
vm.set_boot_order(['Hard Disk', 'CD-ROM', 'Network'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue