-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathais_deploy_cluster.yml
30 lines (26 loc) · 1.06 KB
/
ais_deploy_cluster.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
- hosts: "controller"
gather_facts: no
vars_files:
- "vars/ais_mpaths.yml"
- "vars/https_config.yml"
- "vars/multihome.yml"
vars:
- k8s_namespace: "{{cluster}}"
pre_tasks:
- name: Validate if ais_mpaths is defined
fail:
msg: "Variable 'ais_mpaths' not found. Refer to https://github.com/NVIDIA/ais-k8s/tree/main/docs#aistore-cluster-creation-process and populate the var in 'ais_mpaths.yml'"
when: ais_mpaths is undefined
- name: Validate if ais_mpath_size is defined
fail:
msg: "Variable 'ais_mpath_size' not found. Refer to https://github.com/NVIDIA/ais-k8s/tree/main/docs#aistore-cluster-creation-process and populate the var in 'ais_mpaths.yml'"
when: ais_mpath_size is undefined
- name: Validate if cluster is defined
fail:
msg: "Variable 'cluster' not found. Add the 'cluster' variable during execution. Use: ansible-playbook -i hosts.ini ais_deploy_cluster.yml -e cluster=ais"
when: cluster is undefined
roles:
- create_namespace
- create_pv
- ais_deploy_cluster