forked from usegalaxy-eu/pulsar-deployment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvars.tf
103 lines (86 loc) · 2.21 KB
/
vars.tf
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
// Change this file according to your cloud infrastructure and personal settings
// All variables in < > should be checked and personalized
variable "nfs_disk_size" {
default = 3
}
variable "flavors" {
type = map
default = {
"central-manager" = "<m1.medium>"
"nfs-server" = "<m1.medium>"
"exec-node" = "<m1.xlarge>"
"gpu-node" = "<m1.small>"
}
}
variable "exec_node_count" {
default = 2
}
variable "gpu_node_count" {
default = 0
}
variable "image" {
type = map
default = {
"name" = "vggp-v60-j225-1a1df01ec8f3-dev"
"image_source_url" = "https://usegalaxy.eu/static/vgcn/vggp-v60-j225-1a1df01ec8f3-dev.raw"
// you can check for the latest image on https://usegalaxy.eu/static/vgcn/ and replace this
"container_format" = "bare"
"disk_format" = "raw"
}
}
variable "gpu_image" {
type = map
default = {
"name" = "vggp-gpu-v60-j16-4b8cbb05c6db-dev"
"image_source_url" = "https://usegalaxy.eu/static/vgcn/vggp-gpu-v60-j16-4b8cbb05c6db-dev.raw"
// you can check for the latest image on https://usegalaxy.eu/static/vgcn/ and replace this
"container_format" = "bare"
"disk_format" = "raw"
}
}
variable "public_key" {
type = map
default = {
name = "<your_VGCN_key>"
pubkey = "<your public key>"
}
}
variable "name_prefix" {
default = "<vgcn->"
}
variable "name_suffix" {
default = "<.pulsar>"
}
variable "secgroups_cm" {
type = list
default = [
"<a-public-ssh>",
"<ingress-private>",
"<egress-public>",
]
}
variable "secgroups" {
type = list
default = [
"<ingress-private>", //Should open at least nfs, 9618 for HTCondor and 22 for ssh
"<egress-public>",
]
}
variable "public_network" {
default = "<public>"
}
variable "private_network" {
type = map
default = {
name = "<vgcn-private>"
subnet_name = "<vgcn-private-subnet>"
cidr4 = "<192.52.32.0/20>" //This is important to make HTCondor work
}
}
variable "ssh-port" {
default = "22"
}
//set these variables during execution terraform apply -var "pvt_key=<~/.ssh/my_private_key>" -var "condor_pass=<MyCondorPassword>"
variable "pvt_key" {}
variable "condor_pass" {}
variable "mq_string" {}