mirror of
https://github.com/ComputerScienceHouse/proxstar.git
synced 2025-03-09 15:40:09 +00:00
add sample config.py
This commit is contained in:
parent
4d0fb7ece0
commit
16974eec39
2 changed files with 13 additions and 1 deletions
3
app.py
3
app.py
|
@ -77,7 +77,8 @@ def create():
|
|||
vmid, mac = create_vm(proxmox, starrs, user, name, cores, memory,
|
||||
disk)
|
||||
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))
|
||||
|
||||
|
||||
|
|
11
config.sample.py
Normal file
11
config.sample.py
Normal 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 = ''
|
Loading…
Add table
Add a link
Reference in a new issue