Install prerequisite software

This commit is contained in:
2025-03-24 22:12:20 -05:00
parent 0d96f08f46
commit beef4e89ed
10 changed files with 52 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
---
- name: Install all software on infra01
hosts: infra01
connection: local
gather_facts: true
become: yes
collections:
- somaz94.ansible_k8s_iac_tool
roles:
- install_kustomize
tasks:

View File

@@ -0,0 +1,13 @@
---
- name: Run all tasks necessary to configure matchbox to install the cluster
hosts: matchbox
connection: local
gather_facts: true
tasks:
- name: Clone Git repository
ansible.builtin.git:
repo: "https://github.com/redhatryan/acm-hub-bootstrap.git"
dest: 05-bootstrap-acm
version: main
become: true

View File

@@ -1,4 +1,5 @@
cluster_name: "hub" cluster_name: "hub"
cluster_version: "4.17.20"
base_domain: "int.mk-labs.cloud" base_domain: "int.mk-labs.cloud"
worker_node_count: 0 worker_node_count: 0
master_node_count: 1 master_node_count: 1

View File

@@ -2,3 +2,9 @@
collections: collections:
- name: community.general - name: community.general
version: 10.4.0 version: 10.4.0
- name: nccurry.openshift
version: 1.4.0
- name: somaz94.ansible_k8s_iac_tool
version: 1.1.6

View File

@@ -42,8 +42,16 @@ This ~~is~~ *will be* the complete walkthrough of the deployment of my homelab.
cd homelab cd homelab
ansible-galaxy collection install -r ansible-galaxy collection install -r
ansible-playbook -i inventory.yml 10-sno-hub-cluster/install.yml
``` ```
Other needed software:
- kustomize
- oc
- ansible
- terraform
## [FreeIPA](04-free-ipa/README.md) *Manual* ## [FreeIPA](04-free-ipa/README.md) *Manual*
## [Templates](05-templates/README.md) *Manual* ## [Templates](05-templates/README.md) *Manual*
@@ -80,6 +88,15 @@ This ~~is~~ *will be* the complete walkthrough of the deployment of my homelab.
``` ```
- Admin password and kubeconfig are in the homelab/10-sno-hub-cluster/03-openshift-image/auth directory - Admin password and kubeconfig are in the homelab/10-sno-hub-cluster/03-openshift-image/auth directory
- Bootstrap ACM
Running this playbook will configure Matchbox to wait for the sno-cluster to boot via iPXE and will install Single Node OpenShift. All configuration files are built from templates driven from Ansible variables.
```bash
ansible-playbook -i inventory.yml 10-sno-hub-cluster/install2.yml
```
10-sno-hub-cluster/05-bootstrap-acm/bootstrap.sh
## Internal Cluster *TBD* ## Internal Cluster *TBD*