Create OpenShift assets and move into place
This commit is contained in:
@@ -1,15 +1,3 @@
|
||||
# DNS Provider Configuration
|
||||
|
||||
This directory contains the configuration for the DNS provider using FreeIPA.
|
||||
|
||||
## Environment Variables
|
||||
|
||||
To securely provide the password for the FreeIPA provider, set the following environment variable before running Terraform:
|
||||
|
||||
```bash
|
||||
export TF_VAR_freeipa_password="your_password_here"
|
||||
```
|
||||
|
||||
Replace `your_password_here` with the actual password.
|
||||
|
||||
Ensure that this environment variable is set in your shell session or in a secure environment management tool before executing Terraform commands.
|
||||
This directory contains the configuration to updateFreeIPA DNS for the Hub Cluster.
|
||||
|
||||
@@ -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
|
||||
@@ -1,18 +1 @@
|
||||
# Prepare matchbox to install hub cluster
|
||||
|
||||
## Modify config file for OpenShift Automated Installer
|
||||
|
||||
- 03-matchbox/install-config
|
||||
- 03-matchbox/agent-config
|
||||
|
||||
## Install Ansible pre-requisites
|
||||
|
||||
```bash
|
||||
ansible-galaxy collection install -r
|
||||
```
|
||||
|
||||
## Run installation playbook
|
||||
|
||||
```bash
|
||||
ansible-playbook install.yml
|
||||
```
|
||||
# Moved to other documentation
|
||||
|
||||
@@ -4,10 +4,6 @@
|
||||
connection: local
|
||||
gather_facts: true
|
||||
|
||||
vars_prompt:
|
||||
- name: freeipa_password
|
||||
prompt: FreeIPA password for admin user
|
||||
|
||||
tasks:
|
||||
- name: Deploy DNS entries for cluster via Terraform
|
||||
community.general.terraform:
|
||||
@@ -19,3 +15,15 @@
|
||||
|
||||
- ansible.builtin.include_tasks:
|
||||
file: 02-dhcp/ip-reservations.yml
|
||||
|
||||
- ansible.builtin.include_tasks:
|
||||
file: 03-matchbox/create-openshift-image.yml
|
||||
|
||||
- ansible.builtin.include_tasks:
|
||||
file: 03-matchbox/move-pxe-assets.yml
|
||||
|
||||
- name: Configure Matchbox via Terraform
|
||||
community.general.terraform:
|
||||
project_path: 03-matchbox/
|
||||
state: present
|
||||
force_init: true
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
# requirements.yml
|
||||
collections:
|
||||
- name: community.general
|
||||
version: 10.4.0
|
||||
Reference in New Issue
Block a user