This repository has been archived on 2023-03-15. You can view files and clone it, but cannot push or open issues or pull requests.
infrastructure/os/config
2021-04-09 11:19:54 +02:00
..
group_vars/all Refactor 2 2020-09-12 20:17:07 +02:00
roles Merge branch 'main' into feature/upgrade-ansible 2021-04-09 11:19:54 +02:00
cluster_nodes.yml premier tri des outils de base à installer via apt 2021-03-14 15:49:08 +01:00
hammerhead_inventory.yml WIP: improving Ansible config while I install my HammerHead - added files... 2021-03-23 17:00:27 +01:00
production.yml Merge pull request 'Config Ansible mise à jour à l'occasion de l'install de HammerHead' (#37) from adrien/infrastructure:main into feature/upgrade-ansible 2021-04-09 11:19:38 +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