
Initial submission for a Python-based virtualbox installer for StarlingX Co-Authored-By: Ovidiu.Poncea <ovidiu.poncea@windriver.com> Co-Authored-By: Wei Zhou <wei.zhou@windriver.com> Co-Authored-By: William Jia <william.jia@windriver.com> Co-Authored-By: Sebastien Papineau <sebastien.papineau@windriver.com> Co-Authored-By: Timothy Mather <timothy.mather@windriver.com> Co-Authored-By: Paul Buzuloiu <paul.buzuloiu@windriver.com> DocImpact Story: 2005051 Task: 29552 Signed-off-by: Maria Yousaf <maria.yousaf@windriver.com> Change-Id: Iad5b6d8103886d7eeeab7bf2782eca4adb95e3e6
28 lines
548 B
Python
28 lines
548 B
Python
#!/usr/bin/python3
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
|
|
import getpass
|
|
from sys import platform
|
|
import os
|
|
|
|
user = getpass.getuser()
|
|
|
|
if platform == 'win32' or platform == 'win64':
|
|
LOGPATH = 'C:\\Temp\\pybox_logs'
|
|
PORT = 10000
|
|
else:
|
|
homedir = os.environ['HOME']
|
|
LOGPATH = '{}/vbox_installer_logs'.format(homedir)
|
|
|
|
class Lab:
|
|
VBOX = {
|
|
'floating_ip': '10.10.10.7',
|
|
'controller-0_ip': '10.10.10.8',
|
|
'controller-1_ip': '10.10.10.9',
|
|
'username': 'wrsroot',
|
|
'password': 'Li69nux*',
|
|
}
|