-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathvariables.tf
177 lines (140 loc) · 4.45 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
## Copyright © 2021, Oracle and/or its affiliates.
## All rights reserved. The Universal Permissive License (UPL), Version 1.0 as shown at http://oss.oracle.com/licenses/upl
variable "compartment_ocid" {
description = "Compartment's OCID where VCN will be created. "
}
variable "dns_label" {
description = "Allows assignment of DNS hostname when launching an Instance. "
default = ""
}
variable "label_prefix" {
description = "To create unique identifier for multiple clusters in a compartment."
default = ""
}
variable "ssh_authorized_keys" {
description = "Public SSH keys path to be included in the ~/.ssh/authorized_keys file for the default user on the instance. "
default = ""
}
variable "ssh_private_key" {
description = "The private key path to access instance. "
default = ""
}
variable "controller_ad" {
description = "The Availability Domain for Jenkins Controller. "
default = ""
}
variable "controller_subnet_id" {
description = "The OCID of the Controller subnet to create the VNIC in. "
default = ""
}
variable "jenkins_password" {
description = "Required field for Jenkins initial password. "
}
variable "jenkins_version" {
description = "The verion of Jenkins server. "
}
variable "controller_assign_public_ip" {
description = "Assign public IP to Controller instance. "
default = false
}
variable "controller_display_name" {
description = "The name of the Controller instance. "
default = "JenkinsController"
}
variable "controller_image_id" {
description = "The OCID of an image for a Controller instance to use. "
default = ""
}
variable "controller_shape" {
description = "Instance shape to use for Controller instance. "
default = "VM.Standard2.1"
}
variable "controller_flex_shape_ocpus" {
description = "Number of Flex shape OCPUs"
default = ""
}
variable "controller_flex_shape_memory" {
description = "Amount of Flex shape Memory in GB"
default = ""
}
variable "controller_user_data" {
description = "Provide your own base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom Cloud-Init configuration for Controller instance. "
default = ""
}
variable "agent_count" {
description = "Number of agent instances to launch. "
default = 1
}
variable "agent_ads" {
description = "The Availability Domain(s) for Jenkins agent(s). "
default = []
}
variable "agent_subnet_ids" {
description = "List of Jenkins agent subnets' id. "
default = []
}
variable "agent_display_name" {
description = "The name of the agent instance. "
default = "JenkinsAgent"
}
variable "agent_image_id" {
description = "The OCID of an image for agent instance to use. "
default = ""
}
variable "agent_shape" {
description = "Instance shape to use for agent instance. "
default = "VM.Standard2.1"
}
variable "agent_flex_shape_ocpus" {
description = "Number of Flex shape OCPUs"
default = ""
}
variable "agent_flex_shape_memory" {
description = "Amount of Flex shape Memory in GB"
default = ""
}
variable "agent_user_data" {
description = "Provide your own base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom Cloud-Init configuration for agent instance. "
default = ""
}
variable "http_port" {
description = "The port to use for HTTP traffic to Jenkins. "
default = 8080
}
variable "jnlp_port" {
description = "The Port to use for Jenkins Controller to agent communication bewtween instances. "
default = 49187
}
variable "plugins" {
type = list(any)
description = "A list of Jenkins plugins to install, use short names. "
default = ["git", "ssh-agents", "oracle-cloud-infrastructure-compute"]
}
variable "use_bastion_service" {
description = "Use bastion service instead of bastion host"
default = false
}
variable "bastion_service_id" {
description = "Bastion Service OCID"
default = ""
}
variable "bastion_service_region" {
description = "Bastion Service Region"
default = ""
}
variable "bastion_host" {
description = "The bastion host IP."
default = ""
}
variable "bastion_user" {
description = "The SSH user to connect to the bastion host."
default = "opc"
}
variable "bastion_private_key" {
description = "The private key path to access the bastion host."
default = ""
}
variable "bastion_authorized_keys" {
description = "The public key path to access the bastion host."
default = ""
}