add sample config.py

This commit is contained in:
Jordan Rodgers 2017-12-04 00:02:49 -05:00
parent 4d0fb7ece0
commit 16974eec39
2 changed files with 13 additions and 1 deletions

3
app.py
View file

@ -77,7 +77,8 @@ def create():
vmid, mac = create_vm(proxmox, starrs, user, name, cores, memory, vmid, mac = create_vm(proxmox, starrs, user, name, cores, memory,
disk) disk)
register_starrs(starrs, name, user, mac, register_starrs(starrs, name, user, mac,
get_next_ip(starrs, '49net Public Fixed')[0][0]) get_next_ip(starrs,
app.config['STARRS_IP_RANGE'])[0][0])
return redirect("/proxstar/vm/{}".format(vmid)) return redirect("/proxstar/vm/{}".format(vmid))

11
config.sample.py Normal file
View file

@ -0,0 +1,11 @@
# Proxmox
PROXMOX_HOST = ''
PROXMOX_USER = ''
PROXMOX_PASS = ''
# STARRS
STARRS_DB_HOST = ''
STARRS_DB_NAME = ''
STARRS_DB_USER = ''
STARRS_DB_PASS = ''
STARRS_IP_RANGE = ''