Moved server definitions to wk/cfg/net.py

This commit is contained in:
2Shirt 2019-12-09 17:50:36 -07:00
parent b25b15f195
commit 2770f85e01
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
3 changed files with 32 additions and 11 deletions

View file

@ -1,6 +1,7 @@
"""WizardKit: Config - Main
NOTE: A non-standard format is used for BASH/BATCH/PYTHON compatibility"""
NOTE: Non-standard formating is used for BASH/BATCH/PYTHON compatibility
"""
# pylint: disable=bad-whitespace
# vim: sts=2 sw=2 ts=2
@ -30,15 +31,6 @@ TECH_PASSWORD='Abracadabra'
LINUX_TIME_ZONE='America/Denver'
WINDOWS_TIME_ZONE='Mountain Standard Time'
# Misc
CRASH_SERVER = {
'Name': 'CrashServer',
'Url': '',
'User': '',
'Pass': '',
'Headers': {'X-Requested-With': 'XMLHttpRequest'},
}
if __name__ == '__main__':
print("This file is not meant to be called directly.")

View file

@ -1,6 +1,35 @@
"""WizardKit: Config - Net"""
# pylint: disable=bad-whitespace
# vim: sts=2 sw=2 ts=2
# Servers
BACKUP_SERVERS = {
'Server One': {
'IP': '10.0.0.10',
'Share': 'Backups',
'RO-User': 'restore',
'RO-Pass': 'Abracadabra',
'RW-User': 'backup',
'RW-Pass': 'Abracadabra',
},
'Server Two': {
'IP': '10.0.0.11',
'Share': 'Backups',
'RO-User': 'restore',
'RO-Pass': 'Abracadabra',
'RW-User': 'backup',
'RW-Pass': 'Abracadabra',
},
}
CRASH_SERVER = {
'Name': 'CrashServer',
'Url': '',
'User': '',
'Pass': '',
'Headers': {'X-Requested-With': 'XMLHttpRequest'},
}
if __name__ == '__main__':
print("This file is not meant to be called directly.")

View file

@ -27,12 +27,12 @@ except ImportError:
raise
from wk.cfg.main import (
CRASH_SERVER,
ENABLED_UPLOAD_DATA,
INDENT,
SUPPORT_MESSAGE,
WIDTH,
)
from wk.cfg.net import CRASH_SERVER
# STATIC VARIABLES