github.com/openshift/installer@v1.4.17/upi/vsphere/variables.ps1.example (about) 1 # Modify these variables below for your environment 2 # Option for script to create install-config and modify for upi install 3 $createInstallConfig=$false 4 $downloadInstaller=$false 5 $uploadTemplateOva=$false 6 $generateIgnitions=$false 7 $waitForComplete=$false 8 $delayVMStart=$false 9 10 # OKD variables 11 # OKD version to be installed 12 $version = "4.9" 13 $clustername = "openshift" 14 $basedomain = "vmc.devcluster.example.com" 15 $sshkeypath = "/home/bubba/.ssh/id_rsa.pub" 16 # trying to make this as simple as possible 17 # will reuse IPIs haproxy, keepalived 18 # then we can simply use DHCP. 19 $apivip = "192.168.1.10" 20 $ingressvip = "192.168.1.11" 21 22 23 # vCenter variables 24 $vcenter = "vcs8e-vc.ocp2.dev.cluster.com" 25 $username = "" 26 $password = '' 27 $portgroup = "ocp-ci-seg-1" 28 $datastore = "workload_share_vcs8eworkload_lrFsW" 29 $datacenter = "IBMCloud" 30 $cluster = "vcs-8e-workload" 31 $vcentercredpath = "secrets/vcenter-creds.xml" 32 $storagepolicy = "" 33 $secureboot = $false 34 35 $pullsecret = @" 36 {"auths":{"fake":{"auth":"aWQ6cGFzcwo="}}} 37 "@ 38 39 $dns = "8.8.8.8" 40 $gateway = "192.168.14.1" 41 $netmask = "255.255.255.0" 42 43 $lb_ip_address = "192.168.14.10" 44 $bootstrap_ip_address = "192.168.14.11" 45 46 # The IP addresses to assign to the control plane VMs. The length of this list 47 # must match the value of control_plane_count. 48 $control_plane_memory = 16384 49 $control_plane_num_cpus = 4 50 $control_plane_count = 3 51 $control_plane_ip_addresses = "192.168.14.20", "192.168.14.21", "192.168.14.22" 52 $control_plane_hostnames = "control-plane-0", "control-plane-1", "control-plane-2" 53 54 # The IP addresses to assign to the compute VMs. The length of this list must 55 # match the value of compute_count. 56 $compute_memory = 8192 57 $compute_num_cpus = 4 58 $compute_count = 3 59 $compute_ip_addresses = "192.168.14.30", "192.168.14.31", "192.168.14.32" 60 $compute_hostnames = "compute-0", "compute-1", "compute-2" 61 62 # If you do not need the script upload a template, you will need to specify the template here. 63 # You can also set this if you want to change the default name of template when its uploaded. 64 $vm_template = "" 65 66 $failure_domains = @" 67 [ 68 { 69 // Name of the vSphere data center. 70 "datacenter": "datacenter-2", 71 // Name of the vSphere cluster. 72 "cluster": "vcs-mdcnc-workload-4", 73 // Name of the vSphere data store to use for the VMs. 74 "datastore": "mdcnc-ds-4", 75 // Name of the vSphere network to use for the VMs. 76 "network": "ocp-ci-seg-14" 77 } 78 ] 79 "@ 80 81 $virtualmachines =@" 82 { 83 "virtualmachines": { 84 "bootstrap": { 85 "server": "$($vcenter)", 86 "datacenter": "$($datacenter)", 87 "cluster": "$($cluster)", 88 "network": "$($portgroup)", 89 "datastore": "$($datastore)", 90 "type": "bootstrap" 91 }, 92 "master-0": { 93 "server": "$($vcenter)", 94 "datacenter": "$($datacenter)", 95 "cluster": "$($cluster)", 96 "network": "$($portgroup)", 97 "datastore": "$($datastore)", 98 "type": "master" 99 }, 100 "master-1": { 101 "server": "$($vcenter)", 102 "datacenter": "$($datacenter)", 103 "cluster": "$($cluster)", 104 "network": "$($portgroup)", 105 "datastore": "$($datastore)", 106 "type": "master" 107 }, 108 "master-2": { 109 "type": "master", 110 "server": "$($vcenter)", 111 "datacenter": "$($datacenter)", 112 "cluster": "$($cluster)", 113 "network": "$($portgroup)", 114 "datastore": "$($datastore)", 115 }, 116 "worker-0": { 117 "type": "worker", 118 "server": "$($vcenter)", 119 "datacenter": "$($datacenter)", 120 "cluster": "$($cluster)", 121 "network": "$($portgroup)", 122 "datastore": "$($datastore)", 123 }, 124 "worker-1": { 125 "type": "worker", 126 "server": "$($vcenter)", 127 "datacenter": "$($datacenter)", 128 "cluster": "$($cluster)", 129 "network": "$($portgroup)", 130 "datastore": "$($datastore)", 131 }, 132 "worker-2": { 133 "type": "worker", 134 "server": "$($vcenter)", 135 "datacenter": "$($datacenter)", 136 "cluster": "$($cluster)", 137 "network": "$($portgroup)", 138 "datastore": "$($datastore)", 139 } 140 } 141 } 142 "@ 143 144 $installconfig = @" 145 { 146 "apiVersion": "v1", 147 "baseDomain": "domain", 148 "metadata": { 149 "name": "cluster" 150 }, 151 "platform": { 152 "vsphere": { 153 "vcenter": "vcsa", 154 "username": "username", 155 "password": "password", 156 "datacenter": "dc1", 157 "defaultDatastore": "datastore", 158 "cluster": "cluster", 159 "network": "network", 160 # "apiVIP": "ipaddr", 161 # "ingressVIP": "ipaddr" 162 } 163 }, 164 "pullSecret": "", 165 "sshKey": "" 166 } 167 "@