Add initial steps for workload cluster staging;Include govc (temporarily)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d986d5ab25
commit
ea20b1290c
@ -3,6 +3,7 @@
|
|||||||
gather_facts: false
|
gather_facts: false
|
||||||
vars_files:
|
vars_files:
|
||||||
- metacluster.yml
|
- metacluster.yml
|
||||||
|
- workloadcluster.yml
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- os
|
- os
|
||||||
|
@ -1,11 +1,14 @@
|
|||||||
- name: Pre-stage K3s components
|
- name: Pre-stage K3s components
|
||||||
import_tasks: k3s.yml
|
import_tasks: k3s.yml
|
||||||
|
|
||||||
- name: Pre-stage meta components
|
- name: Pre-stage meta-cluster components
|
||||||
import_tasks: components.yml
|
import_tasks: components.yml
|
||||||
|
|
||||||
- name: Pre-stage IaC repositories
|
- name: Pre-stage IaC repositories
|
||||||
import_tasks: config.yml
|
import_tasks: config.yml
|
||||||
|
|
||||||
|
- name: Pre-stage workload-cluster components
|
||||||
|
import_tasks: staging.yml
|
||||||
|
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
import_tasks: cleanup.yml
|
import_tasks: cleanup.yml
|
||||||
|
14
ansible/roles/metacluster/tasks/staging.yml
Normal file
14
ansible/roles/metacluster/tasks/staging.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
- name: Create folder structure(s)
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ item }}"
|
||||||
|
state: directory
|
||||||
|
loop:
|
||||||
|
- /opt/workloadcluster/node-templates
|
||||||
|
|
||||||
|
- name: Download images
|
||||||
|
ansible.builtin.uri:
|
||||||
|
url: "{{ item.url }}"
|
||||||
|
dest: /opt/workloadcluster/node-templates/{{ item.name }}
|
||||||
|
loop: "{{ downstream.node_templates }}"
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.name }}"
|
@ -132,6 +132,9 @@ dependencies:
|
|||||||
static_binaries:
|
static_binaries:
|
||||||
- filename: tea
|
- filename: tea
|
||||||
url: https://dl.gitea.io/tea/0.8.0/tea-0.8.0-linux-amd64
|
url: https://dl.gitea.io/tea/0.8.0/tea-0.8.0-linux-amd64
|
||||||
|
- filename: govc
|
||||||
|
url: https://github.com/vmware/govmomi/releases/download/v0.29.0/govc_Linux_x86_64.tar.gz
|
||||||
|
archive: compressed
|
||||||
- filename: helm
|
- filename: helm
|
||||||
url: https://get.helm.sh/helm-v3.9.0-linux-amd64.tar.gz
|
url: https://get.helm.sh/helm-v3.9.0-linux-amd64.tar.gz
|
||||||
archive: compressed
|
archive: compressed
|
||||||
|
5
ansible/vars/workloadcluster.yml
Normal file
5
ansible/vars/workloadcluster.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
downstream:
|
||||||
|
|
||||||
|
node_templates:
|
||||||
|
- url: https://stable.release.flatcar-linux.net/amd64-usr/3227.2.0/flatcar_production_vmware_ova.ova
|
||||||
|
name: flatcar.ova
|
Loading…
Reference in New Issue
Block a user