-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
51 lines (42 loc) · 1.09 KB
/
variables.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
variable "scw_org" {}
variable "scw_token" {}
variable "prefix" {}
variable "region" {
default = "par1"
}
variable "instance_agents_type" {
default = "DEV1-S"
}
variable "instance_agents_count" {
default = "2"
}
variable "instance_master_type" {
default = "DEV1-S"
}
variable "instance_image" {
default = {
architecture = "x86_64"
name = "Ubuntu Bionic"
}
}
# SSH
variable "ssh_user" {
description = "SSH user name to use for remote exec connections,"
default = "root"
}
variable "ssh_port" {
description = "SSH user name to use for remote exec connections,"
default = "22"
}
variable "ssh_public_key_file" {
description = "SSH public key file for remote exec connections,"
default = "~/.ssh/id_rsa.pub"
}
variable "ssh_private_key_file" {
description = "SSH private key file for remote exec connections,"
default = "~/.ssh/id_rsa"
}
locals {
ssh_public = "${fileexists(var.ssh_public_key_file) ? trimspace(file(var.ssh_public_key_file)) : ""}"
ssh_private = "${fileexists(var.ssh_private_key_file) ? file(var.ssh_private_key_file) : ""}"
}