Install prerequisite software
This commit is contained in:
15
03-infra01-server/install.yml
Normal file
15
03-infra01-server/install.yml
Normal 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:
|
||||||
|
|
||||||
0
10-sno-hub-cluster/05-bootstrap-acm/README.md
Normal file
0
10-sno-hub-cluster/05-bootstrap-acm/README.md
Normal file
13
10-sno-hub-cluster/05-bootstrap-acm/install2.yml
Normal file
13
10-sno-hub-cluster/05-bootstrap-acm/install2.yml
Normal 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
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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*
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user