-
Notifications
You must be signed in to change notification settings - Fork 11
/
site.yml
49 lines (49 loc) · 1.31 KB
/
site.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
- hosts: all
gather_facts: no
vars_files:
- [ "group_vars/all/nuxeo-{{ nuxeo_select_version }}.yml" ]
vars:
- nuxeo_templates: "default"
- nuxeo_nodes: []
pre_tasks:
- name: Mongo template
set_fact:
nuxeo_templates: "{{ nuxeo_templates }},mongodb"
when: "mongo"
- name: PostgreSQL template
set_fact:
nuxeo_templates: "{{ nuxeo_templates }},postgresql"
when: "postgres"
- name: Redis template
set_fact:
nuxeo_templates: "{{ nuxeo_templates }},redis"
when: "redis and (nuxeo_version is version_compare('9.10', '>'))"
- name: Kafka Confluent template
set_fact:
nuxeo_templates: "{{ nuxeo_templates }},/templates/confluent"
when: "kafkaconfluent"
- name: Nuxeo standalone
set_fact:
nuxeo_nodes: ['nuxeo']
when: "nuxeo_nb_nodes == '1'"
tags:
- test
- name: 2 Nuxeo nodes
set_fact:
nuxeo_nodes: ['nuxeo', 'nuxeo2']
when: "nuxeo_nb_nodes == '2'"
tags:
- test
- name: 3 Nuxeo nodes
set_fact:
nuxeo_nodes: ['nuxeo', 'nuxeo2', 'nuxeo3']
when: "nuxeo_nb_nodes == '3'"
tags:
- test
- name: Nuxeo template
debug: var=nuxeo_templates
- name: Nuxeo node names
debug: var=nuxeo_nodes
roles:
- common