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:
@ -1,11 +1,14 @@
|
||||
- name: Pre-stage K3s components
|
||||
import_tasks: k3s.yml
|
||||
|
||||
- name: Pre-stage meta components
|
||||
- name: Pre-stage meta-cluster components
|
||||
import_tasks: components.yml
|
||||
|
||||
- name: Pre-stage IaC repositories
|
||||
import_tasks: config.yml
|
||||
|
||||
- name: Pre-stage workload-cluster components
|
||||
import_tasks: staging.yml
|
||||
|
||||
- name: Cleanup
|
||||
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 }}"
|
Reference in New Issue
Block a user