-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathserver.yml
More file actions
70 lines (60 loc) · 1.92 KB
/
server.yml
File metadata and controls
70 lines (60 loc) · 1.92 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
- name: Check if Trento would be installed on SLES
hosts: trento_server
become: true
tasks:
- name: Check SLES distribution and version
ansible.builtin.fail:
msg: "This playbook only runs on SLES for SAP 15 SP3 or above. Detected: {{ ansible_distribution }} {{ ansible_distribution_version }}"
when: >
(ansible_distribution != "SLES_SAP") or
(ansible_distribution_version is version('15.3', '<'))
- name: Provision Postgres
hosts: postgres_hosts
roles:
- role: postgres
become: true
when: provision_postgres | bool
- name: Provision Prometheus
hosts: prometheus_hosts
roles:
- role: prometheus
become: true
when: provision_prometheus | bool
- role: firewall
become: true
firewall_ports:
- "{{ prometheus_port }}/tcp"
when: provision_prometheus | bool
- name: Provision RabbitMQ
hosts: rabbitmq_hosts
roles:
- role: rabbitmq
become: true
when: provision_rabbitmq | bool
- name: Configure Trento components
hosts: trento_server
roles:
# Explicitly call the trento role with the passed parameters to
# please the linter.
- role: trento
run_once: true
vars:
trento_postgres_host_group: "{{ 'postgres_hosts' if (provision_postgres | bool) else '' }}"
trento_rabbitmq_host_group: "{{ 'rabbitmq_hosts' if (provision_rabbitmq | bool) else '' }}"
trento_prometheus_host_group: "{{ 'prometheus_hosts' if (provision_prometheus | bool) else '' }}"
- role: web
become: true
- role: wanda
become: true
- role: rproxy
become: true
when: provision_proxy | bool
vars:
rproxy_provision_prometheus: "{{ provision_prometheus | bool }}"
- role: firewall
become: true
firewall_ports:
- "{{ rproxy_vhost_http_listen_port }}/tcp"
- "{{ rproxy_vhost_https_listen_port }}/tcp"
when: provision_proxy | bool