forked from oracle-quickstart/oci-jenkins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
125 lines (100 loc) · 3.2 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
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 "master_ad" {
description = "The Availability Domain for Jenkins master. "
default = ""
}
variable "master_subnet_id" {
description = "The OCID of the master 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 "master_display_name" {
description = "The name of the master instance. "
default = "JenkinsMaster"
}
variable "master_image_id" {
description = "The OCID of an image for a master instance to use. "
default = ""
}
variable "master_shape" {
description = "Instance shape to use for master instance. "
default = "VM.Standard2.1"
}
variable "master_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 master instance. "
default = ""
}
variable "slave_count" {
description = "Number of slave instances to launch. "
default = 1
}
variable "slave_ads" {
description = "The Availability Domain(s) for Jenkins slave(s). "
default = []
}
variable "slave_subnet_ids" {
description = "List of Jenkins slave subnets' id. "
default = []
}
variable "slave_display_name" {
description = "The name of the slave instance. "
default = "JenkinsSlave"
}
variable "slave_image_id" {
description = "The OCID of an image for slave instance to use. "
default = ""
}
variable "slave_shape" {
description = "Instance shape to use for slave instance. "
default = "VM.Standard2.1"
}
variable "slave_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 slave 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 master to slave communication bewtween instances. "
default = 49187
}
variable "plugins" {
type = "list"
description = "A list of Jenkins plugins to install, use short names. "
default = ["git", "ssh-slaves", "oracle-cloud-infrastructure-compute"]
}
variable "bastion_host" {
description = "The bastion host IP."
}
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."
}