-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables_jenkins.tf.example
More file actions
96 lines (80 loc) · 3.22 KB
/
Copy pathvariables_jenkins.tf.example
File metadata and controls
96 lines (80 loc) · 3.22 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
88
89
90
91
92
93
94
95
96
/**
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* ----------------------------------------
Specific to jenkins_bootstrap module
---------------------------------------- */
variable "jenkins_agent_gce_subnetwork_cidr_range" {
description = "The subnetwork to which the Jenkins Agent will be connected to (in CIDR range 0.0.0.0/0)"
type = string
}
variable "jenkins_agent_gce_private_ip_address" {
description = "The private IP Address of the Jenkins Agent. This IP Address must be in the CIDR range of `jenkins_agent_gce_subnetwork_cidr_range` and be reachable through the VPN that exists between on-prem (Jenkins Controller) and GCP (CICD Project, where the Jenkins Agent is located)."
type = string
}
variable "jenkins_agent_gce_ssh_pub_key" {
description = "SSH public key needed by the Jenkins Agent GCE Instance. The Jenkins Controller holds the SSH private key. The correct format is `'ssh-rsa [KEY_VALUE] [USERNAME]'`"
type = string
}
variable "jenkins_agent_sa_email" {
description = "Email for Jenkins Agent service account."
type = string
default = "jenkins-agent-gce"
}
variable "jenkins_controller_subnetwork_cidr_range" {
description = "A list of CIDR IP ranges of the Jenkins Controller in the form ['0.0.0.0/0']. Usually only one IP in the form '0.0.0.0/32'. Needed to create a FW rule that allows communication with the Jenkins Agent GCE Instance."
type = list(string)
}
variable "nat_bgp_asn" {
type = number
description = "BGP ASN for NAT cloud route. This is needed to allow the Jenkins Agent to download packages and updates from the internet without having an external IP address."
}
variable "vpn_shared_secret" {
description = "The shared secret used in the VPN"
type = string
}
variable "on_prem_vpn_public_ip_address" {
description = "The public IP Address of the Jenkins Controller."
type = string
}
variable "on_prem_vpn_public_ip_address2" {
description = "The second public IP Address of the Jenkins Controller."
type = string
}
variable "router_asn" {
type = number
description = "BGP ASN for cloud routes."
default = "64515"
}
variable "bgp_peer_asn" {
type = number
description = "BGP ASN for cloud routes."
}
variable "tunnel0_bgp_peer_address" {
type = string
description = "BGP session address for tunnel 0"
}
variable "tunnel0_bgp_session_range" {
type = string
description = "BGP session range for tunnel 0"
}
variable "tunnel1_bgp_peer_address" {
type = string
description = "BGP session address for tunnel 1"
}
variable "tunnel1_bgp_session_range" {
type = string
description = "BGP session range for tunnel 1"
}