-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved ALB and Redis tasks to subplaybooks (refs fititnt/ap-applicatio…
- Loading branch information
Showing
3 changed files
with
43 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
# FILE: alb-ha-cluster-infra-alb.yml | ||
# LICENSE: Public Domain | ||
|
||
|
||
# ansible-playbook -i hosts.yml playbooks/alb-ha-cluster-infra-alb.yml | ||
|
||
# To do some basic check for see if redis is listening, is possible to use | ||
# (printf "PING\r\n"; sleep 1) | nc aguia-pescadora-delta.etica.ai 6379 | ||
# (printf "PING\r\n"; sleep 1) | nc aguia-pescadora-echo.etica.ai 6379 | ||
# (printf "PING\r\n"; sleep 1) | nc aguia-pescadora-foxtrot.etica.ai 6379 | ||
|
||
- name: "alb-ha-cluster-infra: Playbook to manange the cluster underline infrastructure (not the apps)" | ||
hosts: cluster_all_nodes | ||
remote_user: root | ||
vars: | ||
# On this ap-alb-cluster-demo, we will use as example a single YAML file | ||
# containing all variables at /hosts.yml | ||
# | ||
# Note that ansible allows other types of inventories | ||
|
||
roles: | ||
- ap-application-load-balancer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
# FILE: alb-ha-cluster-infra.yml | ||
# LICENSE: Public Domain | ||
|
||
|
||
# ansible-playbook -i hosts.yml playbooks/alb-ha-cluster-infra-redis.yml | ||
|
||
# To do some basic check for see if redis is listening, is possible to use | ||
# (printf "PING\r\n"; sleep 1) | nc aguia-pescadora-delta.etica.ai 6379 | ||
# (printf "PING\r\n"; sleep 1) | nc aguia-pescadora-echo.etica.ai 6379 | ||
# (printf "PING\r\n"; sleep 1) | nc aguia-pescadora-foxtrot.etica.ai 6379 | ||
|
||
# We will use https://github.com/DavidWittman/ansible-redis to setup an Redis cluster | ||
|
||
- name: "alb-ha-cluster-infra + davidwittman.redis: setup master, slave and sentinel" | ||
hosts: cluster_all_nodes | ||
roles: | ||
- davidwittman.redis |