-
Notifications
You must be signed in to change notification settings - Fork 15
/
template.deploy_config.py
executable file
·66 lines (59 loc) · 2.42 KB
/
template.deploy_config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import os
from utility.win_env import get_user_path
# RoAMer related
THIS_FILE_PATH = str(os.path.abspath(__file__))
PROJECT_ROOT = str(os.path.abspath(os.sep.join([THIS_FILE_PATH, ".."])))
BIN_ROOT = str(os.path.abspath(os.sep.join([PROJECT_ROOT, "roamer", "bin"])))
USERPATH = get_user_path()
BUILD_INSTANCE = {
"client_paths": {
"receiver": os.path.join(USERPATH, "Desktop", "roamer.exe"), # used for update_receiver
"repo": os.path.join(USERPATH, "roamer_repo"), # used for compiling source / storing binaries
"repo_zip": os.path.join(USERPATH, "roamer.zip"), # used for compiling source
"to_whitelist": os.path.join("C:" + os.sep), # used to create whitelist
},
"host_ip": "192.168.56.1",
"host_port": 10000,
"guest_ip": "1.1.1.1",
"guest_port": 10000,
"debug_sleep": 0,
"socket_timeout": 480,
"staged_update": True, # requires python on client, SHOULD BE DISABLED FOR PROD
"requires_cleaning_before_snapshot": False,
# Virtualization related
# VM_CONTROLLER choose "VboxManageController" for VirtualBox or "KvmManageController" for KVM
"VM_CONTROLLER": "VboxManageController",
"VM_NAME": "vm_name_build",
"SNAPSHOT_NAME": "snapshot_name_build",
}
PROD_INSTANCE = {
"client_paths": {
"receiver": os.path.join(USERPATH, "Desktop", "roamer.exe"), # used for update_receiver
"repo": os.path.join(USERPATH, "roamer_repo"), # used for compiling source / storing binaries
"repo_zip": os.path.join(USERPATH, "roamer.zip"), # used for compiling source
"to_whitelist": os.path.join("C:" + os.sep), # used to create whitelist
},
"host_ip": "192.168.56.1",
"host_port": 10000,
"guest_ip": "1.1.1.1",
"guest_port": 10000,
"debug_sleep": 0,
"socket_timeout": 480,
"staged_update": False, # requires python on client, SHOULD BE DISABLED FOR PROD
"requires_cleaning_before_snapshot": True,
# Virtualization related
# VM_CONTROLLER choose "VboxManageController" for VirtualBox or "KvmManageController" for KVM
"VM_CONTROLLER": "VboxManageController",
"VM_NAME": "vm_name_prod",
"SNAPSHOT_NAME": "snapshot_name_prod",
}
# Use the following line instead of specifying a PROD_INSTANCE
# if you are building roamer on the same vm instance you are dumping with
# PROD_INSTANCE = BUILD_INSTANCE
TASKS = [
"unpacker",
# "receiver",
# "whitelister",
# "whitelist",
# "bootstrap"
]