infrastructure/os/config
Jill bebd6eaab6
os/users: Add kokakiwi (jill) user and keys
Signed-off-by: Jill <kokakiwi@deuxfleurs.fr>
2021-09-28 15:36:59 +02:00
..
group_vars/all Refactor 2 2020-09-12 20:17:07 +02:00
roles os/users: Add kokakiwi (jill) user and keys 2021-09-28 15:36:59 +02:00
cluster_nodes.yml Refactor 2 2020-09-12 20:17:07 +02:00
production.yml Try to optimize Consul 2021-04-04 20:04:25 +02:00
README.md use ansible_become instead of ansible_user: root 2020-11-13 12:33:23 +01:00
README.more.md Refactor 2 2020-09-12 20:17:07 +02:00
site.yml Refactor 2 2020-09-12 20:17:07 +02:00

ANSIBLE

How to proceed

For each machine, one by one do:

  • Check that cluster is healthy
    • Check gluster
      • sudo gluster peer status
      • sudo gluster volume status all (check Online Col, only Y must appear)
    • Check that Nomad is healthy
      • nomad server members
      • nomad node status
    • Check that Consul is healthy
      • consul members
    • Check that Postgres is healthy
  • Run ansible-playbook -i production.yml --limit <machine> -u <username> site.yml
  • Run nomad node drain -enable -force -self
  • Reboot
  • Run nomad node drain -self -disable
  • Check that cluster is healthy