Create OpenShift assets and move into place

This commit is contained in:
2025-03-22 23:29:34 -05:00
parent 8c00a98ae2
commit 2df2d32696
10 changed files with 125 additions and 72 deletions

View File

@@ -1,24 +1,7 @@
# Configure the OpenShift Agent Installer and Matchbox
## Create OpenShift Installation Files
## Reference Document
<https://docs.redhat.com/en/documentation/openshift_container_platform/4.17/epub/installing_an_on-premise_cluster_with_the_agent-based_installer/prepare-pxe-assets-agent#prepare-pxe-assets-agent>
### Downloading the Agent-based Installer
### Create/Modify config files
```bash
cd 10-sno-hub-cluster/02-matchbox
```
- agent-config.yaml
- install-config.yaml
### Run image creation
```bash
openshift-install agent create pxe-files
```
Recap of install in .openshift_install.log
Recap of image creation is in 10-sno-hub-cluster/02-matchbox/.openshift_install.log

View File

@@ -0,0 +1,7 @@
---
- name: OpenShift image creation
ansible.builtin.command:
cmd: /usr/local/bin/openshift-install agent create pxe-files
chdir: 03-matchbox
register: command_result
ignore_errors: yes

View File

@@ -0,0 +1,15 @@
---
- name: Create a directory if it does not exist
ansible.builtin.file:
path: "{{ matchbox_assets }}/{{ hub_cluster_name }}"
state: directory
mode: '0755'
become: true
- name: Copy file with owner and permissions
ansible.builtin.copy:
src: 03-matchbox/boot-artifacts/
dest: "{{ matchbox_assets }}/{{ hub_cluster_name }}/"
owner: matchbox
group: matchbox
become: true