-
Notifications
You must be signed in to change notification settings - Fork 5
/
inventory.yml
235 lines (191 loc) · 6.86 KB
/
inventory.yml
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
all:
hosts:
children:
# Specify only 1 server in bastion group.
# Bastion is the host where the playbook is running.
bastion_grp:
hosts:
ocp4-bastion:
ansible_host: 192.168.0.224
setup_haproxy: yes
setup_registry: yes
# LB using haproxy on bastion
apps_lb:
children:
bastion_grp:
master_lb:
children:
bastion_grp:
# External LB (F5, etc).
# Inventory name does not matter since we are not managing it
# apps_lb:
# hosts:
# lb1:
# ansible_host: xxx.xxx.xxx.xxx
# master_lb:
# hosts:
# lb2:
# ansible_host: xxx.xxx.xxx.xxx
ocp:
children:
bootstrap_grp:
hosts:
bootstrap:
ansible_host: 192.168.0.225
vars:
vm_memory_mb: 7168
vm_cpu: 4
vm_disks:
- size: 80
type: thin
ignition_file: bootstrap.ign
masters_grp:
hosts:
master0:
ansible_host: 192.168.0.226
master1:
ansible_host: 192.168.0.227
master2:
ansible_host: 192.168.0.228
vars:
vm_memory_mb: 7168
vm_cpu: 4
vm_disks:
- size: 80
type: thin
ignition_file: master.ign
workers_grp:
children:
infra_routers_grp:
hosts:
# hosts:
# worker2:
# ansible_host: 192.168.0.231
# vars:
# vm_memory_mb: 2048
# vm_cpu: 1
# vm_disks:
# - size: 80
# type: thin
# ignition_file: worker.ign
infra_routers_grp:
hosts:
worker0:
ansible_host: 192.168.0.229
worker1:
ansible_host: 192.168.0.230
worker2:
ansible_host: 192.168.0.231
vars:
vm_memory_mb: 7168
vm_cpu: 4
vm_disks:
- size: 80
type: thin
ignition_file: worker.ign
vars:
### OpenShift Installer ###
cluster_name: ocppoc
base_domain: vsphere.lab.ltsai.com
openshift_cluster_network_cidr: 10.128.0.0/14
openshift_host_prefix: 23
openshift_service_network_cidr: 172.30.0.0/16
########
apps_use_wildcard_dns: yes # Whether to check for wildcard dns
# Defaults in roles
pip_path: /root/repos/pip
registry_image_tar_path: /root/repos/registry.tar
# Created by (cd /opt/registry/data && tar cvzf /tmp/registry_data.tar.gz .)
registry_data_tar_path: /root/repos/registry_data.tar.gz # If this does not exists, a blank registry will be created
rhcos_image_path: /root/repos/rhcos-4.2.18-x86_64-metal-bios.raw.gz
rhcos_installer_iso: /root/repos/rhcos-4.2.18-x86_64-installer.iso
openshift_client_file: /root/repos/openshift-client-linux-4.2.20.tar.gz
openshift_installer_file: /root/repos/openshift-install-linux-4.2.20.tar.gz
openshift_extracted_installer: /root/repos/sbin/openshift-install
iso_output_dir: /root/isos
# Authentication json file for local registry
podman_auth_file: /root/.podmanauth.json
timesync_ntp_servers:
- hostname: pool.ntp.org
iburst: yes
vm_template: rhel7_template
########
# If necessary, configure the local yum repo.
# yum_repos:
# - name: rhel-7-server-rpms
# src: /root/repos/rhel-7-server-rpms
# dest: /var/www/html/repos/rhel-7-server-rpms
# - name: rhel-7-server-extras-rpms
# src: /root/repos/rhel-7-server-extras-rpms
# dest: /var/www/html/repos/rhel-7-server-extras-rpms
# yum_conf:
# - name: rhel-7-server-rpms
# baseurl: "{% if inventory_hostname != groups['bastion_grp'][0] %}https://{{https_server}}{% else %}file:///var/www/html{% endif %}/repos/repos/rhel-7-server-rpms"
# gpgkey: /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
# sslverify: no
# - name: rhel-7-server-extras-rpms
# baseurl: "{% if inventory_hostname != groups['bastion_grp'][0] %}https://{{https_server}}{% else %}file:///var/www/html{% endif %}/repos/repos/rhel-7-server-extras-rpms"
# gpgkey: /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
# sslverify: no
#######
# This should be in vault.yml
# vcenter_hostname:
# vcenter_username:
# vcenter_password:
# vcenter_insecure_ssl: true
# vcp_username:
# vcp_password:
# registry_username: openshift
# registry_password: password
# ocp_pull_secret: # from cloud.redhat.com when doing a connected install
########
# VMware Cloud Provider (VCP) for Kubernetes
use_vcp: true
vcp_datacenter: Datacenter
vcp_datastore: nfs_ds
########
# Where to upload boot iso
iso_datastore: nfs_ds
iso_datacenter: Datacenter
iso_datastore_path: /iso #For VMware
########
# VMware info for vms
vm_datacenter: Datacenter
vm_datastore: nfs_ds
vm_folder: "/{{vm_datacenter}}/vm/{{cluster_name}}" # Folder name must match cluster name
vm_cluster: lab
vm_network: "VM Network"
########
# VM information
vm_interface_name: ens192
vm_netmask: 255.255.255.0
vm_gateway: 192.168.0.1
vm_dns:
- 192.168.0.212
vm_install_dev: sda
########
# Configure this if there is a local Satellite.
# From https://github.com/oasis-roles/rhsm
# rhsm_org_id: IT
# rhsm_activationkey: rhel-7Server
# rhsm_server_hostname: sat6.lab.ltsai.com
# rhsm_repositories:
# disabled:
# - '*'
# enabled:
# - rhel-7-server-rpms
# - rhel-7-server-extras-rpms # podman
########
# This is for the LB check. Wait for N seconds before testing
# whether Apache port is opened. Delay should include OS bootup time
# and ensuring open-vm-tools is reporting the correct vm power status
# to vCenter. Used in roles/lb_check/main.yml
delay_check_apache_start: 30
# List of hosts to generate iso for
iso_ocp_hosts: "{{ groups['ocp'] | sort }}"
#### DO NOT CHANGE ###
dns_domain: "{{cluster_name + '.' + base_domain}}"
http_server: "{{ groups['bastion_grp'][0] + '.' + dns_domain }}:8080"
https_server: "{{ groups['bastion_grp'][0] + '.' + dns_domain }}:8443"
registry_server: "{{ groups['bastion_grp'][0] + '.' + dns_domain }}:5000"
#####