forked from JohnStrunk/oso-gluster-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
site.yml
43 lines (33 loc) · 1.34 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
# vim: set ts=2 sw=2 et :
---
########################################
# This file declares the desired configuration of the Gluster cluster(s)
#
# Server organization:
# - A Gluster cluster is contained entirely within a region.
# - Each region may have more than 1 cluster
# - Nodes within a cluster are divided into groups
# - Each group has 3 total servers, each of which is in a different AZ
# - Volumes are constructed from a group of servers (replica=3)
#
# Required tags:
# For this playbook to function properly, the ec2 instances need to have the
# following tags applied to them:
# gluster-group: <group-id>
# (e.g., gluster-group=us-east-2-c00-g00)
# One host from each cluster should additionally have a tag:
# gluster-master: <cluster-id>
# (e.g., gluster-master=us-east-2-c00)
# This "master" host will be used for peer probe and volume operations
# Install/remove ssh authorized keys
- import_playbook: playbooks/ssh-keys.yml
# Install Gluster servers and clients
- import_playbook: playbooks/install-servers.yml
# Configure gluster volumes
- import_playbook: playbooks/gluster-volume.yml
# Install pcp collection on jump host
- import_playbook: playbooks/install-jumphost.yml
# Need to add managed reboot sequence here
# Reboot by AZ, ensuring hosts are up & healed before each reboot
# Conditions:
# when: rhgs_updated.changed == true