forked from jruels/tf-labs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf.jenkins
112 lines (87 loc) · 2.06 KB
/
variables.tf.jenkins
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
# GCP variables
variable "region" {
description = "Region to deploy demo VM"
default = "us-west2"
}
variable "number_of_demo_instances" {
description = "How many VMs do you want?"
default = 1
}
# Jenkins variables
variable "jenkins_initial_password" {
description = "Jenkins user password"
default = "password"
}
variable "project_id" {
description = "Project for Jenkins VM"
}
variable "jenkins_instance_network" {
description = "Network for Jenkins instance"
default = "default"
}
variable "jenkins_instance_subnetwork" {
description = "Subnetwork for Jenkins instance"
default = "default"
}
variable "jenkins_instance_zone" {
description = "Jenkins VM zone"
default = "us-west2-a"
}
variable "jenkins_workers_network" {
description = "Network for workers"
default = "default"
}
variable "jenkins_workers_project_id" {
description = "Workers Project"
}
variable "jenkins_workers_region" {
description = "Workers region"
default = "us-west2"
}
# GKE variables
variable "gke_cluster_name" {
description = "Name of GKE cluster"
default = "gke-jenkins"
}
variable "gke_zone" {
description = "Zone for GKE cluster"
type = list(string)
default = ["us-west2-a"]
}
variable "gcp_services" {
description = "GCP API services"
type = list(string)
default = ["compute.googleapis.com, container.googleapis.com"]
}
variable "gke_network" {
description = "Network to deploy GKE"
default = "default"
}
variable "gke_subnetwork" {
description = "GKE Subnetwork"
default = "default"
}
variable "range_pods_name" {
default = "gke-jenkins-pods"
}
variable "range_services_name" {
default = "gke-jenkins-services"
}
variable "node_pools_name" {
default = "default-node-pool"
}
variable "node_pools_machine_type" {
default = "e2-medium"
}
variable "node_pools_min_count" {
default = 1
}
variable "node_pools_max_count" {
default = 1
}
variable "node_pools_disk_size" {
default = 100
}
variable "initial_node_count" {
default = 3
}