61 lines
2.1 KiB
Markdown
61 lines
2.1 KiB
Markdown
#
|
|
|
|
```
|
|
cd /var/www/html
|
|
curl -O https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.3/4.3.0/rhcos-4.3.0-x86_64-metal.raw.gz
|
|
curl -O https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.3/4.3.0/rhcos-4.3.0-x86_64-installer-kernel
|
|
curl -O https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/4.3/4.3.0/rhcos-4.3.0-x86_64-installer-initramfs.img
|
|
```
|
|
|
|
example playbook:
|
|
```
|
|
- hosts: gw01.lab.vargen.io
|
|
tasks:
|
|
- import_role:
|
|
name: lab_gw
|
|
tags: ["gw", "haproxy"]
|
|
- import_role:
|
|
name: os4-pxe-install-server
|
|
vars:
|
|
os4_pxe_install_server_address: 10.32.101.1/24
|
|
os4_pxe_install_server_gateway: 10.32.101.1
|
|
os4_pxe_install_server_nameserver: 8.8.8.8
|
|
os4_pxe_install_server_domain_name: ocp01.lab.vargen.io
|
|
os4_pxe_install_server_clients:
|
|
- hostname: bootstrap.ocp01.lab.vargen.io
|
|
ip: 10.32.101.3
|
|
ignition: bootstrap.ign
|
|
mac: "52:54:00:30:73:d0"
|
|
- hostname: master-0.ocp01.lab.vargen.io
|
|
ip: 10.32.101.4
|
|
ignition: master.ign
|
|
mac: "52:54:00:f3:46:7e"
|
|
- hostname: worker-0.ocp01.lab.vargen.io
|
|
ip: 10.32.101.5
|
|
ignition: worker.ign
|
|
mac: "52:54:00:8d:45:c3"
|
|
- hostname: worker-1.ocp01.lab.vargen.io
|
|
ip: 10.32.101.6
|
|
ignition: worker.ign
|
|
mac: "52:54:00:ca:39:08"
|
|
- hostname: worker-2.ocp01.lab.vargen.io
|
|
ip: 10.32.101.7
|
|
ignition: worker.ign
|
|
mac: "52:54:00:f3:1a:20"
|
|
- hostname: ocs-0.ocp01.lab.vargen.io
|
|
ip: 10.32.101.8
|
|
ignition: worker.ign
|
|
mac: "52:54:00:be:c1:a3"
|
|
- hostname: ocs-1.ocp01.lab.vargen.io
|
|
ip: 10.32.101.9
|
|
ignition: worker.ign
|
|
mac: "52:54:00:dd:3e:e3"
|
|
- hostname: ocs-2.ocp01.lab.vargen.io
|
|
ip: 10.32.101.10
|
|
ignition: worker.ign
|
|
mac: "52:54:00:33:9d:da"
|
|
os4_pxe_install_server_firewalld_zone: internal
|
|
os4_pxe_install_server_httpd_port: 8000
|
|
tags: ["pxe"
|
|
```
|