ansible/roles/nfs-client-provisioner/tasks/main.yaml

26 lines
1.6 KiB
YAML

- set_fact:
nfs_client_provisioner_hdd_combined_values: "{{ nfs_client_provisioner_hdd_default_values | combine(nfs_client_provisioner_hdd_values, recursive=true) }}"
- name: Deploy NFS client provisioner for HDD storage
community.kubernetes.helm:
create_namespace: true
release_namespace: "{{ nfs_client_provisioner_hdd_namespace | default(nfs_client_provisioner_namespace) | default(namespace) }}"
release_name: "{{ nfs_client_provisioner_hdd_name | default('nfs-client-provisioner-hdd') }}"
chart_ref: "{{ nfs_client_provisioner_hdd_chart | default('nfs-subdir-external-provisioner/nfs-subdir-external-provisioner') }}"
chart_version: "{{ nfs_client_provisioner_hdd_version | default(omit) }}"
release_values: "{{ nfs_client_provisioner_hdd_combined_values | from_yaml }}"
wait: true
- set_fact:
nfs_client_provisioner_ssd_combined_values: "{{ nfs_client_provisioner_ssd_default_values | combine(nfs_client_provisioner_ssd_values, recursive=true) }}"
- name: Deploy NFS client provisioner for SSD storage
community.kubernetes.helm:
create_namespace: true
release_namespace: "{{ nfs_client_provisioner_ssd_namespace | default(nfs_client_provisioner_namespace) | default(namespace) }}"
release_name: "{{ nfs_client_provisioner_ssd_name | default('nfs-client-provisioner-ssd') }}"
chart_ref: "{{ nfs_client_provisioner_ssd_chart | default('nfs-subdir-external-provisioner/nfs-subdir-external-provisioner') }}"
chart_version: "{{ nfs_client_provisioner_ssd_version | default(omit) }}"
release_values: "{{ nfs_client_provisioner_ssd_combined_values | from_yaml }}"
wait: true