organize playbooks into subdirs
This commit is contained in:
6
ansible/playbooks/k8s/00_all_of_the_things.yaml
Normal file
6
ansible/playbooks/k8s/00_all_of_the_things.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
- ansible.builtin.import_playbook: ./01_baremetal.yaml
|
||||
- ansible.builtin.import_playbook: ./02_hypervisor.yaml
|
||||
- ansible.builtin.import_playbook: ./03_vm_template.yaml
|
||||
- ansible.builtin.import_playbook: ./04_vm_deploy.yaml
|
||||
- ansible.builtin.import_playbook: ./05_k8s_deploy.yaml
|
7
ansible/playbooks/k8s/01_baremetal.yaml
Normal file
7
ansible/playbooks/k8s/01_baremetal.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
- name: bare metal os installation
|
||||
gather_facts: false
|
||||
hosts: hv00
|
||||
become: true
|
||||
roles:
|
||||
- baremetal
|
15
ansible/playbooks/k8s/02_hypervisor.yaml
Normal file
15
ansible/playbooks/k8s/02_hypervisor.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
- name: configure hyervisor host
|
||||
gather_facts: false
|
||||
hosts: hv00
|
||||
become: true
|
||||
|
||||
roles:
|
||||
- python-install
|
||||
- sshd
|
||||
- firewall
|
||||
- pikaur
|
||||
- msmtp
|
||||
- zfs-install
|
||||
- libvirt-server
|
||||
|
7
ansible/playbooks/k8s/03_vm_template.yml
Normal file
7
ansible/playbooks/k8s/03_vm_template.yml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
- name: create vm template
|
||||
hosts: hv00
|
||||
gather_facts: true
|
||||
become: true
|
||||
roles:
|
||||
- vm_template
|
22
ansible/playbooks/k8s/04_vm_deploy.yaml
Normal file
22
ansible/playbooks/k8s/04_vm_deploy.yaml
Normal file
@ -0,0 +1,22 @@
|
||||
---
|
||||
- name: create the vms
|
||||
hosts: hv00
|
||||
gather_facts: true
|
||||
become: true
|
||||
roles:
|
||||
- vm_deploy
|
||||
|
||||
# - name: vm hardening
|
||||
# hosts: k8s
|
||||
# gather_facts: true
|
||||
# become: true
|
||||
# roles:
|
||||
# - sshd
|
||||
# - firewall
|
||||
|
||||
- name: configure vm disks
|
||||
hosts: k8s
|
||||
gather_facts: true
|
||||
become: true
|
||||
roles:
|
||||
- vm_disks
|
66
ansible/playbooks/k8s/05_k8s_deploy.yaml
Normal file
66
ansible/playbooks/k8s/05_k8s_deploy.yaml
Normal file
@ -0,0 +1,66 @@
|
||||
---
|
||||
# - name: configure control plane
|
||||
# hosts: k8s_control
|
||||
# gather_facts: true
|
||||
# become: true
|
||||
# roles:
|
||||
# - k8s_control
|
||||
|
||||
# - name: configure calico networking
|
||||
# hosts: localhost
|
||||
# gather_facts: true
|
||||
# become: false
|
||||
# roles:
|
||||
# - k8s_network
|
||||
|
||||
# - name: remove control-plane taints
|
||||
# hosts: localhost
|
||||
# gather_facts: false
|
||||
# become: false
|
||||
# roles:
|
||||
# - k8s_taint
|
||||
|
||||
# - name: configure zfs storage on nodes
|
||||
# hosts: k8s_storage
|
||||
# gather_facts: true
|
||||
# become: true
|
||||
# roles:
|
||||
# - zfs_repo_install
|
||||
|
||||
# - name: configure open-ebs storage operator
|
||||
# hosts: localhost
|
||||
# gather_facts: false
|
||||
# become: false
|
||||
# roles:
|
||||
# - k8s_storage_ebs_local_deploy
|
||||
|
||||
- name: configure open-ebs zfs driver
|
||||
hosts: localhost
|
||||
gather_facts: false
|
||||
become: false
|
||||
roles:
|
||||
- k8s_storage_ebs_zfs_deploy
|
||||
|
||||
# - name: configure smb storage provider
|
||||
# hosts: localhost
|
||||
# gather_facts: false
|
||||
# become: false
|
||||
# roles:
|
||||
# - k8s_storage_smb_deploy
|
||||
|
||||
# - name: configure ingress controller
|
||||
# hosts: localhost
|
||||
# gather_facts: false
|
||||
# become: false
|
||||
# roles:
|
||||
# - k8s_ingress_controller
|
||||
|
||||
|
||||
# - name: configure cert manager
|
||||
# hosts: localhost
|
||||
# gather_facts: false
|
||||
# become: false
|
||||
# roles:
|
||||
# - k8s_cert_manager
|
||||
|
||||
|
7
ansible/playbooks/k8s/96_ebs_destroy.yaml
Normal file
7
ansible/playbooks/k8s/96_ebs_destroy.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
- name: destroy rook storage
|
||||
hosts: k8s_worker
|
||||
gather_facts: true
|
||||
become: true
|
||||
roles:
|
||||
- k8s_ebs_destroy
|
7
ansible/playbooks/k8s/96_rook_destroy.yaml
Normal file
7
ansible/playbooks/k8s/96_rook_destroy.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
- name: destroy rook storage
|
||||
hosts: k8s_worker
|
||||
gather_facts: true
|
||||
become: true
|
||||
roles:
|
||||
- k8s_rook_destroy
|
7
ansible/playbooks/k8s/97_k8s_destroy.yaml
Normal file
7
ansible/playbooks/k8s/97_k8s_destroy.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
- name: destroy the k8s cluster
|
||||
hosts: k8s
|
||||
gather_facts: true
|
||||
become: true
|
||||
roles:
|
||||
- k8s_destroy
|
7
ansible/playbooks/k8s/98_vm_destroy.yaml
Normal file
7
ansible/playbooks/k8s/98_vm_destroy.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
---
|
||||
- name: destroy the vms
|
||||
hosts: hv00
|
||||
gather_facts: true
|
||||
become: true
|
||||
roles:
|
||||
- vm_destroy
|
3
ansible/playbooks/k8s/99_burn_it_all.yaml
Normal file
3
ansible/playbooks/k8s/99_burn_it_all.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
- ansible.builtin.import_playbook: ./97_k8s_destroy.yaml
|
||||
- ansible.builtin.import_playbook: ./98_vm_destroy.yaml
|
1
ansible/playbooks/k8s/roles
Symbolic link
1
ansible/playbooks/k8s/roles
Symbolic link
@ -0,0 +1 @@
|
||||
../../roles/
|
Reference in New Issue
Block a user