-
Notifications
You must be signed in to change notification settings - Fork 1
/
prepare-openshift-install.yml
46 lines (37 loc) · 1.23 KB
/
prepare-openshift-install.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
---
- name: Setup files needed for bare metal install
hosts: registry
vars_files:
- vars/install-config-vars.yml
tasks:
- name: Create {{ install_dir }}
file:
path: "{{ install_dir }}"
state: directory
- name: Generate the install-config.yaml
template:
src: install-config.yaml.j2
dest: "{{ install_dir }}/install-config.yaml"
- name: Backup install-config.yaml
copy:
src: "{{ install_dir }}/install-config.yaml"
dest: "{{ install_dir }}/install-config.yaml.bak"
- name: Generate manifest files
command: openshift-install create manifests --dir={{ install_dir }}
- name: Change master servers to non-schedulable
replace:
path: "{{ install_dir }}/manifests/cluster-scheduler-02-config.yml"
regexp: 'true'
replace: 'false'
- name: Generate ignition config files
command: openshift-install create ignition-configs --dir={{ install_dir }}
- name: Copy ignition config files to web server ignition directory
become: yes
copy:
src: "{{ install_dir }}/{{ item }}.ign"
dest: /var/www/html/ignition
mode: 0644
loop:
- bootstrap
- master
- worker