-
Notifications
You must be signed in to change notification settings - Fork 744
/
common-install.yaml
39 lines (33 loc) · 2.25 KB
/
common-install.yaml
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
31
32
33
34
35
36
37
38
39
- name: KubeSphere | Checking KubeSphere Config is Exists
shell: >
{{ bin_dir }}/kubectl get secret -n kubesphere-system | grep "redis-secret" | wc -l
register: redis_secret_exist
- import_tasks: redis-install.yaml
when:
- (common.redis is defined and common.redis.enabled is defined and common.redis.enabled) or (enableHA is defined and enableHA)
- "status.redis is not defined or status.redis.status is not defined or status.redis.status != 'enabled'"
- redis_secret_exist.stdout == "0"
- import_tasks: openldap-install.yaml
when:
- (common.openldap is defined and common.openldap.enabled is defined and common.openldap.enabled) or devops.enabled
- "status.openldap is not defined or status.openldap.status is not defined or status.openldap.status != 'enabled'"
- import_tasks: minio-install.yaml
when:
- (devops.enabled or (openpitrix.store is defined and openpitrix.store.enabled is defined and openpitrix.store.enabled)) and common.s3 is not defined
- "status.minio is not defined or status.minio.status is not defined or status.minio.status != 'enabled'"
- import_tasks: escurator-install.yaml
when:
- logging.enabled or events.enabled or auditing.enabled or servicemesh.enabled or (notification.history is defined and notification.history.enabled)
- common.es is defined and common.es.enabled is defined and common.es.enabled
- "status.es is not defined or status.es.status is not defined or status.es.status != 'enabled'"
- "status.opensearch is not defined or status.opensearch.status is not defined or status.opensearch.status != 'enabled'"
- import_tasks: opensearch-install.yaml
when:
- logging.enabled or events.enabled or auditing.enabled or servicemesh.enabled
- common.opensearch is defined and common.opensearch.enabled is defined and common.opensearch.enabled
- "status.opensearch is not defined or status.opensearch.status is not defined or status.opensearch.status != 'enabled'"
- "status.es is not defined or status.es.status is not defined or status.es.status != 'enabled'"
- import_tasks: fluentbit-install.yaml
when:
- logging.enabled or events.enabled or auditing.enabled
- "status.fluentbit is not defined or status.fluentbit.status is not defined or status.fluentbit.status != 'enabled'"