-
Notifications
You must be signed in to change notification settings - Fork 1
/
terraform.tfvars.example
90 lines (66 loc) · 3.26 KB
/
terraform.tfvars.example
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
// ID identifying the cluster to create. Use your username so that resources created can be tracked back to you.
cluster_id = "cluster"
// Domain of the cluster. This should be "${cluster_id}.${base_domain}".
cluster_domain = "cluster.example.com"
// Base domain from which the cluster domain is a subdomain.
base_domain = "example.com"
// Name of the vSphere server.
vsphere_server = "vcenter.example.com"
// User on the vSphere server.
vsphere_user = "admin"
// Password of the user on the vSphere server.
vsphere_password = "passw0rd"
// Name of the vSphere cluster.
vsphere_cluster = "Cluster"
// Name of the vSphere data center.
vsphere_datacenter = "Datacenter"
// Name of the vSphere data store to use for the VMs.
vsphere_datastore = "Datastore"
// Name of the VM template to clone to create VMs for the cluster.
vm_template = "rhcos-4.3.0"
// Name of the VM network to attach to
vm_network = "VM Network"
// Name of the folder where the OCP cluster VMs will be created
// The path is relative to the vCenter root
vm_folder = "Production/openshift/ocp-cluster"
// The name of the Resource Pool where the OCP cluster VMs will be assigned
// The default Resource Pool for the vCenter Cluster is Resources
// You can find all the Resource Pools available with govc find / -type p
vm_resource_pool = "Resources"
// The machine_cidr where IP addresses will be assigned for cluster nodes.
// Additionally, IPAM will assign IPs based on the network ID.
machine_cidr = "192.168.0.0/24"
// The DNS servers:
dns_ips = ["192.168.10.1", "192.168.10.2", "192.168.10.3"]
// The gateway IP:
gateway_ip = "192.168.0.1"
// Set ipam and ipam_token if you want to use the IPAM server to reserve IP
// addresses for the VMs.
// Address or hostname of the IPAM server from which to reserve IP addresses for the cluster machines.
//ipam = "139.178.89.254"
// Token to use to authenticate with the IPAM server.
//ipam_token = "TOKEN_FOR_THE_IPAM_SERVER"
// Base URL for accesing the ignition files: bootstrap.ign, master.ign and worker.ign through HTTP.
// This needs to be publicly accessible so that the nodes will pull their ignition files from this source.
ignition_url = "http://bastion.example.com/ocp4/ignition"
// Set bootstrap_ip, control_plane_ip, and compute_ip if you want to use static
// IPs reserved someone else, rather than the IPAM server.
// The IP address to assign to the bootstrap VM.
bootstrap_name = ["bootstrap"]
bootstrap_ip = ["192.168.0.12"]
bootstrap_memory = ["16384"]
bootstrap_cpus = ["4"]
// The IP addresses to assign to the control plane VMs. The length of this list
// must match the value of control_plane_count.
control_plane_count = 3
control_plane_names = ["master-0", "master-1", "master-2"]
control_plane_ips = ["192.168.0.3", "192.168.0.4", "192.168.0.5"]
control_plane_memory = ["16384", "16384", "16384"]
control_plane_cpus = ["4", "4", "4"]
// The IP addresses to assign to the compute VMs. The length of this list must
// match the value of compute_count.
compute_count = 6
compute_names = ["infra-0", "infra-1", "infra-2", "worker-0", "worker-1", "worker-2"]
compute_ips = ["192.168.0.6", "192.168.0.7", "192.168.0.8", "192.168.0.9", "192.168.0.10", "192.168.0.11"]
compute_memory = ["16384", "16384", "16384", "16384", "16384", "16384"]
compute_cpus = ["4", "4", "4", "4", "4", "4"]