-
Notifications
You must be signed in to change notification settings - Fork 15
/
start_openshift_installation.yaml
43 lines (41 loc) · 1.48 KB
/
start_openshift_installation.yaml
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
- hosts: localhost
gather_facts: false
vars_files:
- default_vars.yaml
vars:
network_utility_vm_name: "{{ cluster_name }}-utility"
master_ign_file: "ignitions/{{ cluster_name }}/master.ign"
worker_ign_file: "ignitions/{{ cluster_name }}/worker.ign"
bootstrap_ign_file: "ignitions/{{ cluster_name }}/bootstrap.ign"
# bootstrap_ignition_config_url: "http://{{ network_utility_ip }}:{{ httpd_port }}/ignitions/{{cluster_name}}_bootstrap.ign"
tasks:
- name: Configure bootstrap VM
include_tasks: configure_openshift_vms.yaml
vars:
node_role: bootstrap
ignition_data: "{{ lookup('file', bootstrap_ign_file) }}"
# ignition_template: append-bootstrap.ign.j2
with_items: "{{ groups.bootstrap }}"
loop_control:
loop_var: node_name
index_var: idx
- name: Configure control plane VMs
include_tasks: configure_openshift_vms.yaml
vars:
node_role: master
# ignition_template: node.ign.j2
ignition_data: "{{ lookup('file', master_ign_file) }}"
with_items: "{{ groups.master }}"
loop_control:
loop_var: node_name
index_var: idx
- name: Configure worker VMs
include_tasks: configure_openshift_vms.yaml
vars:
node_role: worker
# ignition_template: node.ign.j2
ignition_data: "{{ lookup('file', worker_ign_file) }}"
with_items: "{{ groups.worker }}"
loop_control:
loop_var: node_name
index_var: idx