-
Notifications
You must be signed in to change notification settings - Fork 0
/
vars.tf
53 lines (47 loc) · 1.11 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
variable "token" {
type = string
description = "Security token or IAM token"
sensitive = true
}
variable "cloud_id" {
type = string
}
variable "folder_id" {
type = string
}
variable "zone" {
type = string
default = "ru-central1-d"
}
variable "platform_id" {
type = string
description = "VM platform, see https://yandex.cloud/ru/docs/compute/concepts/vm-platforms"
default = "standard-v2"
}
variable "install_script_url" {
type = string
default = "https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh"
}
locals {
ingress_security_rules = {
"ssh" = {
protocols = ["TCP"]
v4_cidr_blocks = ["0.0.0.0/0"]
description = "Allow SSH access"
port = 22
},
"icmp" = {
protocols = ["ICMP"]
v4_cidr_blocks = ["0.0.0.0/0"]
description = "Allow all"
from_port = 0
to_port = 65535
},
"ovpn" = {
protocols = ["TCP", "UDP"]
v4_cidr_blocks = ["0.0.0.0/0"]
description = "Allow OpenVPN"
port = 1194
},
}
}