Repository navigation
Expand file tree
/
Copy pathvars.tf
More file actions
87 lines (74 loc) · 2.05 KB
/
Copy pathvars.tf
File metadata and controls
87 lines (74 loc) · 2.05 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
87
variable "ibm_cloud_api_key" {
type = string
description = "IBM Cloud API Key"
sensitive = true
}
variable "ibm_cloud_region" {
type = string
description = "IBM Cloud region"
default = "eu-de"
}
variable "pi_ssh_key_path" {
type = string
description = "Path to ssh pub-key"
default = "./power_vs.pub"
}
variable "pi_image_id" {
type = string
description = "Image ID from IBM Cloud catalog to import"
default = "5d543226-04c0-4ca2-bbe2-337cfe18bae7"
}
variable "pi_sys_type" {
type = string
default = "s922"
description = "PowerVS system type (s922, s1022, s1122, e980, e1050, e1080)"
}
variable "pi_proc_type" {
type = string
default = "shared"
description = "Processor type (shared, dedicated, capped)"
}
variable "pi_pin_policy" {
type = string
default = "none"
description = "Pin policy (none, soft, hard)"
}
variable "pi_storage_type" {
type = string
default = "tier3"
description = "Storage tier (tier1, tier3)"
}
variable "pi_instance_name" {
type = string
default = "powervs-instance"
description = "Name of the PowerVS instance"
}
variable "pi_memory" {
type = string
default = "8"
description = "Memory for the PowerVS instance in GB"
}
variable "pi_processors" {
type = string
default = ".25"
description = "Number of vCPUs for the PowerVS instance"
}
variable "pi_create_secondary_volume" {
type = bool
default = false
description = "Whether to create and attach a secondary volume to the instance"
}
variable "pi_secondary_volume_size" {
type = number
default = 100
description = "Size of the secondary volume in GB (minimum 10)"
}
variable "pi_secondary_volume_type" {
type = string
default = "tier3"
description = "Storage tier for secondary volume (tier1 or tier3)"
validation {
condition = contains(["tier1", "tier3"], var.pi_secondary_volume_type)
error_message = "Volume type must be either 'tier1' or 'tier3'."
}
}