-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathvariables.tf
More file actions
86 lines (69 loc) · 2.15 KB
/
variables.tf
File metadata and controls
86 lines (69 loc) · 2.15 KB
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
variable "region" {
description = "GC region"
default = "europe-west4"
}
variable "zone" {
description = "GC zone"
default = "europe-west4-c"
}
variable "amount" {
description = "Number of VMs"
default = "1"
}
variable "name_prefix" {
description = "hostname format: name_prefix-amount"
default = "vm"
}
variable "machine_type" {
description = "List of VM sizes: https://github.com/Eimert/terraform-google-compute-engine-instance#machine_type"
default = "n1-standard-2"
}
variable "user_data" {
description = "VM description."
default = "Managed by terraform plan https://github.com/Eimert/terraform-google-compute-engine-instance"
}
variable "disk_type" {
description = "pd-standard or pd-ssd"
default = "pd-standard"
}
variable "disk_size" {
description = "Primary disk' size in GB"
default = "20"
}
variable "disk_image" {
description = "[Available OS images/templates](https://cloud.google.com/compute/docs/images)"
default = "centos-cloud/centos-7"
}
variable "disk_create_local_exec_command_or_fail" {
default = ":"
}
variable "disk_create_local_exec_command_and_continue" {
default = ":"
}
variable "disk_destroy_local_exec_command_or_fail" {
default = ":"
}
variable "disk_destroy_local_exec_command_and_continue" {
default = ":"
}
variable "automatic_restart" {
description = "Allow google cloud to restart VM for patching (recommended)."
default = "true"
}
variable "dns_name" {
description = "Descriptive name for dns_zone. Use module google-managed-dns-zone to create."
}
variable "dns_zone" {
description = "The DNS zone that is pointing to Google' nameservers (if any). A.k.a. Google' DNS SOA (start of authority). Required suffix: . (dot). Use module google-managed-dns-zone to create."
}
variable "dns_record_name" {
description = "DNS record type == A. For example: 'tower-dev' will become tower-dev.cloud.example.com"
}
variable "username" {
description = "username of user account to be created"
default = "google"
}
variable "public_key_path" {
description = "Only private-key auth is enabled by default. Use `ssh-keygen -t rsa` to generate a public-private keypair."
default = "~/.ssh/id_rsa.pub"
}