Create OpenShift assets and move into place
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
15
10-sno-hub-cluster/03-matchbox/move-pxe-assets.yml
Normal file
15
10-sno-hub-cluster/03-matchbox/move-pxe-assets.yml
Normal 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
|
||||
Reference in New Issue
Block a user