Moved server definitions to wk/cfg/net.py
This commit is contained in:
parent
b25b15f195
commit
2770f85e01
3 changed files with 32 additions and 11 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
"""WizardKit: Config - Main
|
"""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
|
# pylint: disable=bad-whitespace
|
||||||
# vim: sts=2 sw=2 ts=2
|
# vim: sts=2 sw=2 ts=2
|
||||||
|
|
||||||
|
|
@ -30,15 +31,6 @@ TECH_PASSWORD='Abracadabra'
|
||||||
LINUX_TIME_ZONE='America/Denver'
|
LINUX_TIME_ZONE='America/Denver'
|
||||||
WINDOWS_TIME_ZONE='Mountain Standard Time'
|
WINDOWS_TIME_ZONE='Mountain Standard Time'
|
||||||
|
|
||||||
# Misc
|
|
||||||
CRASH_SERVER = {
|
|
||||||
'Name': 'CrashServer',
|
|
||||||
'Url': '',
|
|
||||||
'User': '',
|
|
||||||
'Pass': '',
|
|
||||||
'Headers': {'X-Requested-With': 'XMLHttpRequest'},
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
print("This file is not meant to be called directly.")
|
print("This file is not meant to be called directly.")
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,35 @@
|
||||||
"""WizardKit: Config - Net"""
|
"""WizardKit: Config - Net"""
|
||||||
|
# pylint: disable=bad-whitespace
|
||||||
# vim: sts=2 sw=2 ts=2
|
# 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__':
|
if __name__ == '__main__':
|
||||||
print("This file is not meant to be called directly.")
|
print("This file is not meant to be called directly.")
|
||||||
|
|
|
||||||
|
|
@ -27,12 +27,12 @@ except ImportError:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
from wk.cfg.main import (
|
from wk.cfg.main import (
|
||||||
CRASH_SERVER,
|
|
||||||
ENABLED_UPLOAD_DATA,
|
ENABLED_UPLOAD_DATA,
|
||||||
INDENT,
|
INDENT,
|
||||||
SUPPORT_MESSAGE,
|
SUPPORT_MESSAGE,
|
||||||
WIDTH,
|
WIDTH,
|
||||||
)
|
)
|
||||||
|
from wk.cfg.net import CRASH_SERVER
|
||||||
|
|
||||||
|
|
||||||
# STATIC VARIABLES
|
# STATIC VARIABLES
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue