-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmorpheus.yml
executable file
·114 lines (104 loc) · 2.37 KB
/
morpheus.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
---
# Universal - need to install python on each host / vm.
- hosts: all
gather_facts: false
strategy: free
become: true
tasks:
- name: Prep Hosts with Python
block:
- raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
changed_when: False
rescue:
- raw: test -e /usr/bin/python || (yum install -y python)
changed_when: False
tags:
- prepare_hosts
- distributed
- elastic
- rabbitmq
- percona
# Distributed Deployment Elastic Search.
- hosts: elastic
gather_facts: true
roles:
- elasticsearch
become: true
tags:
- elastic
- distributed
# Distributed Deployment RabbitMQ
- hosts: rabbit
gather_facts: true
roles:
- rabbitmq
become: true
tags:
- rabbitmq
- distributed
# Distributed Deployment Percona DB
- hosts: db
gather_facts: true
pre_tasks:
- name: Gather Morpheus facts
setup:
delegate_to: "{{ item }}"
delegate_facts: true
with_items: "{{ groups['morpheus'] }}"
roles:
- percona
become: true
tags:
- percona
- distributed
# Distributed Deployment Application Tier
- hosts: morpheus
gather_facts: true
pre_tasks:
- name: Gather Elastic Facts
setup:
delegate_to: "{{ item }}"
delegate_facts: true
with_items: "{{ groups['elastic'] }}"
- name: Gather Rabbit Facts
setup:
delegate_to: "{{ item }}"
delegate_facts: true
with_items: "{{ groups['rabbit'] }}"
- name: Gather DB facts
setup:
delegate_to: "{{ item }}"
delegate_facts: true
with_items: "{{ groups['db'] }}"
roles:
- morpheus
become: true
tags:
- morpheus
- distributed
# Elastic Search Verify
- hosts: elastic
gather_facts: true
roles:
- verify
become: true
tags:
- verify
- verify_elastic
# Supportability Checks - these are designed to make sure the OS is running supported operating systems and has enough resources as per recommended values.
- hosts: all
gather_facts: true
roles:
- support
become: true
tags:
- support
# Appliance Mode
# - hosts: appliance
# gather_facts: true
# pre_tasks:
#roles:
# - appliances
# become: true
# tags:
# - appliance_setup