-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
83 lines (70 loc) · 2.3 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
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
# This file contains the variables that are used in the main.tf file
# The variables are defined with default values and descriptions
# Please use the values that are appropriate for your environment
########################################################################################
# Below variables are to connect to the PowerScale cluster
# We need the username, password, endpoint, and insecure connection details
########################################################################################
variable "username" {
description = "Username for PowerScale"
type = string
default = "username"
}
variable "password" {
description = "Password for PowerScale"
type = string
sensitive = true
default = "password"
}
variable "endpoint" {
description = "API endpoint for PowerScale"
type = string
default = "https://endpoint:1234"
}
variable "insecure" {
description = "Allow insecure connections"
type = bool
default = true
}
########################################################################################
# The user module creates a user group in PowerScale
# We need the name and uid of the user
# The accesszone id is implicitly passed from the accesszone module
########################################################################################
variable "user_password" {
description = "User ID for the user"
type = string
sensitive = true
default = "user_password"
}
variable "user_roles" {
description = "Roles for the user"
type = list(string)
default = ["user_roles"]
}
########################################################################################
# The networkpool module creates a network pool in PowerScale
# We need the name, groupnet, subnet, accesszone, aggregation mode, alloc method, description, and ifaces
########################################################################################
variable "networkpool_ifaces" {
description = "List of interfaces"
type = list(object({
iface = string
lnn = number
}))
default = [
{ iface = "1", lnn = 1 },
{ iface = "1", lnn = 2 },
{ iface = "1", lnn = 3 }
]
}
variable "networkpool_ranges" {
description = "IP ranges for the network pool"
type = list(object({
high = string
low = string
}))
default = [
{ high = "1.2.3.5", low = "1.2.3.1" }
]
}