This commit is contained in:
deflax 2016-12-08 03:11:34 +02:00
parent ba78b2354f
commit ae3f806036
3 changed files with 9 additions and 1 deletions

View file

@ -14,6 +14,11 @@ Python RESTful API for managing a grid of vm slaves
6. generate self signed cert for ssl:
openssl req -new -x509 -days 365 -nodes -out self.pem -keyout self.pem
7. o/
start:
1. crontab -e
2. @reboot /usr/bin/screen -dmS proxmaster /home/master/proxmaster/start.sh
```
##Proxmox permissions:
1. Datacenter -> Permissions -> Add -> User Permission

View file

@ -71,7 +71,9 @@ def vmcreate(req):
#generators
#slave_name = str(grid.query_happiness(region_id, weight)) #TODO: provide weight parameters here and calculate route
slave_name = 'lexx' #staic route
#slave_name = 'lexx' #staic route
slave_name = 'warrior'
#vmid = str(grid.generate_vmid()) #TODO: this should be between 100 and 65000
vm_id = random.randint(1000, 9999)
cubeid = int(time.time() * 10000 * 10000)

View file

@ -14,5 +14,6 @@ else
touch ${LOG_FILE}
fi
cd ${LOG_DIR}/..
#startuwsgi instance
uwsgi config.ini