-
Notifications
You must be signed in to change notification settings - Fork 36
/
config.sh
60 lines (52 loc) · 2.36 KB
/
config.sh
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
#!/usr/bin/env bash
# shellcheck disable=SC2034
##############################################################
### _ _ _ ###
### __ _ __| |___ _ _ __| |_ _(_)__ _ ###
### / _` / _| / _ \ || / _` | '_| / _` | ###
### \__, \__|_\___/\_,_\__,_|_| |_\__, | ###
### |___/ |___/ ###
### ###
### config.sh ###
### ###
### you shouldn't have to edit this unless you really ###
### want to - e.g. testing a different GPU or using your ###
### own custom image ###
### ###
##############################################################
# What GPU would you like and how many? (See https://cloud.google.com/compute/docs/gpus)
ACCELERATORTYPE="nvidia-tesla-t4-vws"
ACCELERATORCOUNT="1"
# GCP Instance and Boot Disk type
INSTANCETYPE="n1-standard-8"
BOOTTYPE="pd-ssd"
# do we make preemptible instances?
PREEMPTIBLE="true"
# GCP Base Image and Family (replace these if you're using your own custom image - give it a family name and enter the Project ID)
IMAGEBASEFAMILY="windows-2019"
IMAGEBASEPROJECT="windows-cloud"
# Various resource and label names
GCLOUDRIG_PREFIX="gcloudrig" # note: also used in gcloudrig-boot.ps1
GCRLABEL="${GCLOUDRIG_PREFIX}" # note: also used in gcloudrig-boot.ps1
GAMESDISK="${GCLOUDRIG_PREFIX}-games" # note: also used in gcloudrig-boot.ps1
IMAGEFAMILY="${GCLOUDRIG_PREFIX}"
INSTANCEGROUP="${GCLOUDRIG_PREFIX}-group"
INSTANCENAME="${GCLOUDRIG_PREFIX}"
SETUPTEMPLATE="${GCLOUDRIG_PREFIX}-setup-template"
CONFIGURATION="${GCLOUDRIG_PREFIX}"
WINDOWSUSER="gcloudrig"
# other globals; overrides may be ignored
REGION=""
PROJECT_ID=""
ZONES=""
GCSBUCKET=""
# default setup options; these will also be selectable during ./setup.sh
declare -A SETUPOPTIONS
SETUPOPTIONS[ZeroTierNetwork]=""
SETUPOPTIONS[VideoMode]="1920x1080"
SETUPOPTIONS[DisplayScaling]=""
SETUPOPTIONS[InstallSteam]="false"
SETUPOPTIONS[InstallBattlenet]="false"
SETUPOPTIONS[InstallSSH]="false"
SETUPOPTIONS[InstallGoogleChrome]="false"
SETUPOPTIONS[InstallFirefox]="false"