2020-07-05 19:52:31 +02:00
|
|
|
# ANSIBLE
|
2019-06-01 16:02:49 +02:00
|
|
|
|
2020-07-05 19:52:31 +02:00
|
|
|
## How to proceed
|
2019-06-01 16:02:49 +02:00
|
|
|
|
2020-07-05 19:52:31 +02:00
|
|
|
For each machine, **one by one** do:
|
|
|
|
- Check that cluster is healthy
|
2020-10-22 18:29:37 +02:00
|
|
|
- Check gluster
|
|
|
|
- `sudo gluster peer status`
|
|
|
|
- `sudo gluster volume status all` (check Online Col, only `Y` must appear)
|
2020-07-05 20:15:28 +02:00
|
|
|
- Check that Nomad is healthy
|
2020-10-22 18:29:37 +02:00
|
|
|
- `nomad server members`
|
|
|
|
- `nomad node status`
|
2020-07-05 20:15:28 +02:00
|
|
|
- Check that Consul is healthy
|
2020-10-22 18:29:37 +02:00
|
|
|
- `consul members`
|
2020-07-05 20:15:28 +02:00
|
|
|
- Check that Postgres is healthy
|
2020-11-13 12:33:23 +01:00
|
|
|
- Run `ansible-playbook -i production.yml --limit <machine> -u <username> site.yml`
|
2020-10-28 17:07:55 +01:00
|
|
|
- Run `nomad node drain -enable -force -self`
|
2020-07-05 19:52:31 +02:00
|
|
|
- Reboot
|
2020-10-28 17:07:55 +01:00
|
|
|
- Run `nomad node drain -self -disable`
|
2020-07-05 19:52:31 +02:00
|
|
|
- Check that cluster is healthy
|
2019-06-01 16:02:49 +02:00
|
|
|
|